/** * The MuxAsyncIterator class multiplexes multiple async iterators into a single * stream. It currently makes an assumption that the final result (the value * returned and not yielded from the iterator) does not matter; if there is any * result, it is discarded. * * @example * ```typescript * import { MuxAsyncIterator } from "https://deno.land/std@$STD_VERSION/async/mod.ts"; * * async function* gen123(): AsyncIterableIterator { * yield 1; * yield 2; * yield 3; * } * * async function* gen456(): AsyncIterableIterator { * yield 4; * yield 5; * yield 6; * } * * const mux = new MuxAsyncIterator(); * mux.add(gen123()); * mux.add(gen456()); * for await (const value of mux) { * // ... * } * // .. * ``` */ export declare class MuxAsyncIterator implements AsyncIterable { #private; add(iterable: AsyncIterable): void; iterate(): AsyncIterableIterator; [Symbol.asyncIterator](): AsyncIterator; }