AsyncGenerator overview

The AsyncGenerator module provides tools for working with AsyncGenerator type in a functional way.

In functional jargon, this module provides a monadic interface over AsyncGenerator.

Added in v1.0.0


Table of contents


conversions

fromAsyncIterable

Signature

export declare function fromAsyncIterable<A>(fa: AsyncIterable<A>): AsyncGenerator<A>

Added in v1.0.0

fromIterable

Signature

export declare function fromIterable<A>(fa: Iterable<A>): LazyArg<AsyncGenerator<A>>

Added in v1.0.0

fromLazyArg

Signature

export declare function fromLazyArg<A, R, N>(f: () => A): AsyncGenerator<A, R, N>

Added in v1.0.0

fromTask

Signature

export declare function fromTask<A>(f: Task<A>): AsyncGenerator<A>

Added in v1.0.0