abla/stm
Generated from source.
Import with import "abla/stm".
Source: abla/stm/entry.ab
Transactional (interface)
interface Transactional
A delegate whose reads and writes are its transaction's: a binding delegated to one (by TVar(…), or a library's own transactional delegate) may be read and written in atomic, and threads share it.
TVar (class)
@__abla_runtime_value("__ablaRuntimeTVarCreate getValue:__ablaRuntimeStmRead setValue:__ablaRuntimeStmWrite")
class TVar<T: __abla_not_resource>(value: T): Transactional
(__abla_runtime_value, reserved to the standard library: an instance is what the first runtime function makes, and each method a call of the runtime function named after it, with the instance first.)
TVar.getValue (method)
fun getValue(): T
The value: in atomic, the transaction's read.
TVar.setValue (method)
fun setValue(value: T): void
Sets the value: in atomic, kept until the transaction commits.
Built from Abla v0.2.79 source ba5d6b7d. Examples and generated signatures follow that source revision.