Header menu logo Nu

'w CoroutineBuilder Type

A computation expression builder for Coroutine. Note that the "value" carried is simply unit as we are sequencing actions.

Constructors

Constructor Description

CoroutineBuilder(launcher)

Full Usage: CoroutineBuilder(launcher)

Parameters:
Returns: 'w CoroutineBuilder
launcher : CoroutineDelayed -> unit
Returns: 'w CoroutineBuilder

Instance members

Instance member Description

this.Bind

Full Usage: this.Bind

Parameters:
Returns: Coroutine

Run i, then run the coroutine produced by f.

i : CoroutineInstruction
f : unit -> Coroutine
Returns: Coroutine

this.Combine

Full Usage: this.Combine

Parameters:
Returns: Coroutine

Sequence two coroutines.

m1 : Coroutine
m2 : CoroutineDelayed
Returns: Coroutine

this.Delay

Full Usage: this.Delay

Parameters:
Returns: CoroutineDelayed

Delay evaluation until the computation is run.

f : unit -> Coroutine
Returns: CoroutineDelayed

this.For

Full Usage: this.For

Parameters:
Returns: Coroutine

Iterate over the sequence and combine coroutines.

seq : 't seq
f : 't -> Coroutine
Returns: Coroutine

this.Run

Full Usage: this.Run

Parameters:

Run the coroutine by launching it.

coroutine : CoroutineDelayed

this.While

Full Usage: this.While

Parameters:
Returns: Coroutine

While the guard is true, run the coroutine produced by body.

guard : unit -> bool
body : CoroutineDelayed
Returns: Coroutine

this.Zero

Full Usage: this.Zero

Returns: Coroutine

Zero is just completion.

Returns: Coroutine

Type something to start searching.