Atom
Namespace: MBrace.Runtime.Utils
Atom utilities module
Functions and values
Function or value | Description |
create(value)
Signature: value:'T -> Atom<'T>
Type parameters: 'T |
Initialize a new atomic container with given value. |
force(atom t)
Signature: atom:Atom<'T> -> t:'T -> unit
Type parameters: 'T |
Force value on given atom. |
swap(atom f)
Signature: atom:Atom<'T> -> f:('T -> 'T) -> unit
Type parameters: 'T |
Atomically updates the container with given function. |
transact(atom f)
Signature: atom:Atom<'T> -> f:('T -> 'T * 'R) -> 'R
Type parameters: 'T, 'R |
Perform atomic transaction on container. |