import { DenoAsync } from "https://deno.land/x/cordeno@v0.3.5/deps.ts";
const { MuxAsyncIterator } = DenoAsync;
The MuxAsyncIterator class multiplexes multiple async iterators into a single stream. It currently makes a few assumptions:
- The iterators do not throw.
- The final result (the value returned and not yielded from the iterator) does not matter; if there is any, it is discarded.
Methods
private
callIteratorNext(iterator: AsyncIterableIterator<T>): Promise<void>[Symbol.asyncIterator](): AsyncIterableIterator<T>