const classafConcurrent::LocalList
sys::Obj afConcurrent::LocalList
Manages a List stored in Actor.locals
with a unique key.
Note that LocalLists
are lazy; that is, no List is created or stored in Actor.locals
until accessed.
- add
Add the specified item to the end of the list. Return this.
- clear
This clear()
Remove all key/value pairs from the map. Return this.
- contains
Returns
true
if this list contains the specified item.- each
Call the specified function for every item in the list.
- get
Returns the item at the specified index. A negative index may be used to access an index from the end of the list.
- isEmpty
Bool isEmpty()
Return
true
if size() == 0- list
Obj?[] list
Gets or sets the thread local list
- localRef
const LocalRef localRef
The
LocalRef
thisLocalList
wraps.- make
new make(Str name)
Makes a
LocalList
instance.- remove
Removes the specified item from the list, returning the removed item. If the item was not mapped then return
null
.- rw
Obj?[] rw()
Get a read-write, mutable List instance with the same contents.
- size
Int size()
Get the number of values in the map.