Defines non-final APIs for concurrent programming.
-
Creates a scoped value that is initially unbound for all threads.
<T> T
Returns a new Carrier
with the mappings from this carrier plus a
new mapping from key
to value
.
Creates a new Carrier
with a single mapping of a ScopedValue
key to a value.
static <T> void
Run an operation with a ScopedValue
bound to a value in the current
thread.
static <T,
R> R
Calls a value-returning operation with a ScopedValue
bound to a value
in the current thread.