Returns an AsyncStream that yields elements of the Iterable returned by the factory function.
Type of items in the source.
Factory function that returns an Iterable.
AsyncStream that yields elements of the Iterable returned by the factory function.
const result = deferAsync<number>(() => [1, 2, 3]);console.log(result); // [1, 2, 3] Copy
const result = deferAsync<number>(() => [1, 2, 3]);console.log(result); // [1, 2, 3]
Returns an AsyncStream that yields elements of the Iterable returned by the factory function.