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 : 'w Coroutine -> unit
Returns: 'w CoroutineBuilder

Instance members

Instance member Description

this.Bind

Full Usage: this.Bind

Parameters:
Returns: 'w Coroutine

Run c, then run the coroutine produced by f.

c : 'w -> unit
f : unit -> 'w Coroutine
Returns: 'w Coroutine

this.Bind

Full Usage: this.Bind

Parameters:
Returns: 'w Coroutine

Run c, then run the coroutine produced by f.

c : 'w Coroutine
f : unit -> 'w Coroutine
Returns: 'w Coroutine

this.Combine

Full Usage: this.Combine

Parameters:
Returns: 'w Coroutine

Sequence two coroutines.

m1 : 'w Coroutine
m2 : 'w Coroutine
Returns: 'w Coroutine

this.Delay

Full Usage: this.Delay

Parameters:
Returns: 'w Coroutine

Delay evaluation until the computation is run.

f : unit -> 'w Coroutine
Returns: 'w Coroutine

this.For

Full Usage: this.For

Parameters:
Returns: 'w Coroutine

Iterate over the sequence and combine coroutines.

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

this.Return

Full Usage: this.Return

Parameters:
    () : unit

Returns: 'w Coroutine

A no-op action.

() : unit
Returns: 'w Coroutine

this.Run

Full Usage: this.Run

Parameters:

Run the coroutine by launching it.

coroutine : 'w Coroutine

this.Zero

Full Usage: this.Zero

Returns: 'w Coroutine

Zero is just a no-op.

Returns: 'w Coroutine

Type something to start searching.