const classafConcurrent::LocalRef
sys::Obj afConcurrent::LocalRef
Manages an Obj reference stored in Actor.locals
with a unique key.
- cleanUp
Void cleanUp()
Removes this object from
Actor.locals
.- isMapped
Bool isMapped()
Returns
true
ifActor.locals
holds an entry for thisqname
.- make
new make(Str name, Obj? initVal := null)
Creates an entry in
Actor.locals
using the given name.- name
const Str name
The variable name given to the ctor.
- qname
const Str qname
The qualified name this
ThreadLocal
is stored under inActor.locals
.qname
is calculated fromname
.- val
Obj? val