Logo Orsak

EffSeq<'r, 'a, 'e> Type

An effectful stream: like Effect, it requires an environment to start, but it produces a sequence of over time, as an async enumerable, and can fail with . Written with the effSeq computation expression.

Union cases

Union case Description

Effect EffectSeqDelegate<'r, 'a, 'e>

Full Usage: Effect EffectSeqDelegate<'r, 'a, 'e>

Parameters:
Item : EffectSeqDelegate<'r, 'a, 'e>

Instance members

Instance member Description

this.Invoke

Full Usage: this.Invoke

Parameters:
    e : 'r - The environment needed to start the sequence

Returns: IAsyncEnumerable<Result<'a, 'e>>

Starts the sequence with the environment: every item is either an Ok value, or an Error, which ends the sequence.

e : 'r

The environment needed to start the sequence

Returns: IAsyncEnumerable<Result<'a, 'e>>

this.WithCancellation

Full Usage: this.WithCancellation

Parameters:
    outerToken : CancellationToken - The additional token to cancel the enumeration with

Returns: EffSeq<'r, 'a, 'e>

A sequence that is also cancelled by outerToken, as well as by the token it is enumerated with.

outerToken : CancellationToken

The additional token to cancel the enumeration with

Returns: EffSeq<'r, 'a, 'e>

Type something to start searching.