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
trueif 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
trueif size() == 0- list
Obj?[] listGets or sets the thread local list
- localRef
const LocalRef localRefThe
LocalRefthisLocalListwraps.- make
new make(Str name := "LocalList", |This? f := null)Makes a
LocalListinstance.nameis passed toLocalList.- remove
Removes the specified item from the list, returning the removed item. If the item was not mapped then return
null.- removeAt
Remove the object at the specified index. A negative index may be used to access an index from the end of the list. Return the item removed.
- size
Int size()Get the number of values in the map.
- valType
const Type valType := sys::Obj?#Used to parameterize the backing list.
LocalList("name") { it.valType = Str# }