Effection Logo

interface Subscription

thefrontside/effection

interface Subscription<T, TDone>

The Effection equivalent of an AsyncIterator

A subscription acts like a stateful queue that provides a sequence of values via the next() method. Normally a subscription is created via a Stream.

Examples

Example 1

let subscription = yield* stream;
let next = yield* subscription.next();

Type Parameters

T

TDone

Methods

next

(): Operation<IteratorResult<T, TDone>>

No documentation available.

See