Skip to content

@epikodelabs/streamix


@epikodelabs/streamix / src/public-api / fromIterator

Function: fromIterator() ​

fromIterator<T>(source, options?): Readable<T>

Defined in: projects/libraries/streamix/src/lib/atoms/atom.ts:1046

Creates a readable atom backed by an async iterable. Atom state itself has no analog/discrete delivery mode; every source value is observable.

Type Parameters ​

T ​

T

Parameters ​

source ​

AsyncIterable<T>

options? ​

FromIteratorOptions<T>

Returns ​

Readable<T>

Released under the MIT License.