UNPKG

asyncerator

Version:

Provide supporting types for AsyncIterable/AsyncIterableIterators, promisified stream.pipeline implementation, and Array-like utility operators, sources and sinks.

9 lines (8 loc) 343 B
import { type Asyncable, type Asyncerator } from '../asyncerator'; /** * Merge multiple asyncables into a single Asyncerator. If an iterator yields another Asyncerator, * merge its output into the stream. * * @param iterators */ export default function merge<T>(...iterators: Asyncable<T | Asyncable<T> | Promise<T>>[]): Asyncerator<T>;