Gjallarhorn


AtomicMutable<'a>

Namespace: Gjallarhorn

A thread-safe wrapper using interlock for a mutable value with change notification

Constructors

ConstructorDescription
new(value)
Signature: value:'a -> AtomicMutable<'a>

CompiledName: .ctor

Instance members

Instance memberDescription
Update(f)
Signature: (f:('a -> 'a)) -> 'a

Updates the current value in a manner that guarantees proper execution, given a function that takes the current value and generates a new value, and then returns the new value The function may be executed multiple times, depending on the implementation.

Value()
Signature: unit -> 'a

Gets and sets the Value contained within this mutable

CompiledName: set_Value

Value()
Signature: unit -> unit

Gets and sets the Value contained within this mutable

CompiledName: get_Value

Fork me on GitHub