Skip to main content
Module

x/caldera/deps.ts>MuxAsyncIterator

🦕 http/https CONNECT tunnel server on top of Deno
Latest
class MuxAsyncIterator
implements AsyncIterable<T>
import { MuxAsyncIterator } from "https://deno.land/x/caldera@v0.1.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>