Const
Returns an AsyncStream from an iterable (Array, Set, Map, Stream...)
Type of items in the iterable.
Optional
Iterable to convert to an AsyncStream.
AsyncStream that yields elements of the iterable.
const result = fromAsync<number>([1, 2, 3]);console.log(result); // [1, 2, 3] Copy
const result = fromAsync<number>([1, 2, 3]);console.log(result); // [1, 2, 3]
Returns an AsyncStream from an iterable (Array, Set, Map, Stream...)