Problemunvalidated

Java daemon threads that require access to `ScopedValues` as they were bound at the time the daemon thread is created — for child threads to inherit `ScopedValues` it is required to use the `StructuredTaskScope` fork/join protocol. Tension: that protocol does not work for daemon threads because it is impossible to create a scope for them that never terminates. Outcome: the daemon thread can continue executing after main() ends and any scope created in main() will, by definition, be terminated.

63584d7a-bff0-46f5-8fe1-f265a758c2fa

Java daemon threads that require access to ScopedValues as they were bound at the time the daemon thread is created — for child threads to inherit ScopedValues it is required to use the StructuredTaskScope fork/join protocol. Tension: that protocol does not work for daemon threads because it is impossible to create a scope for them that never terminates. Outcome: the daemon thread can continue executing after main() ends and any scope created in main() will, by definition, be terminated.