AsyncResultCell<'T> Type

Haskell's TVar but without the STM. You can use this for your programs; it performs a non-blocking wait for a single value. Use AwaitTimeout to get its contained result as an 'T option

Constructors

Constructor Description

AsyncResultCell()

Full Usage: AsyncResultCell()

Returns: AsyncResultCell<'T>
Returns: AsyncResultCell<'T>

Instance members

Instance member Description

this.awaitResult ?timeout

Full Usage: this.awaitResult ?timeout

Parameters:
Returns: Async<'T option>

Await the result of the AsyncResultCell, yielding Some(:'T) after the timeout or otherwise None.

?timeout : TimeSpan
Returns: Async<'T option>

this.complete result

Full Usage: this.complete result

Parameters:
    result : 'T

Returns: bool

Complete the async result cell, setting the value. If this invocation was the first invocation, returns true, otherwise if there already is a value set, return false.

result : 'T
Returns: bool