Utilities for macro-hygiene.
A Local
is a ThreadLocal whose scope is flexible.
A Local
is a ThreadLocal whose scope is flexible. The state
of all Locals may be saved or restored onto the current thread by
the user. This is useful for threading Locals through execution
contexts.
Because it's not meaningful to inherit control from two places, Locals don't have to worry about having to merge two contexts.
Note: the implementation is optimized for situations in which save and restore optimizations are dominant.
Cross-platform equivalent for java.lang.ThreadLocal
,
for specifying thread-local variables.
Cross-platform equivalent for java.lang.ThreadLocal
,
for specifying thread-local variables.
These variables differ from their normal counterparts in that each thread that accesses one (via its ThreadLocal#get or ThreadLocal#set method) has its own, independently initialized copy of the variable.
(Since version 3.0.0) Switch to monix.execution.AsyncQueue
(Since version 3.0.0) Switch to monix.execution.AsyncSemaphore
(Since version 3.0.0) Switch to monix.execution.AsyncVar
(Since version 3.0.0) Switch to monix.execution.AsyncQueue
(Since version 3.0.0) Switch to monix.execution.AsyncSemaphore
(Since version 3.0.0) Switch to monix.execution.AsyncVar