Skip to main content
Module

x/packup/deps.ts>MuxAsyncIterator

📦 Zero-config web application packager in Deno
Go to Latest
class MuxAsyncIterator
implements AsyncIterable<T>
import { MuxAsyncIterator } from "https://deno.land/x/packup@v0.2.2/deps.ts";

The MuxAsyncIterator class multiplexes multiple async iterators into a single stream. It currently makes an assumption:

  • The final result (the value returned and not yielded from the iterator) does not matter; if there is any, it is discarded.

Methods

add(iterable: AsyncIterable<T>)
iterate(): AsyncIterableIterator<T>
[Symbol.asyncIterator](): AsyncIterator<T>