Skip to main content
Module

x/proc/deps.ts>MuxAsyncIterator

A high-level way to run child processes that is easy, flexible, powerful, and prevents resource leaks.
Very Popular
Go to Latest
class MuxAsyncIterator
implements AsyncIterable<T>
import { MuxAsyncIterator } from "https://deno.land/x/proc@0.19.6/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>): void
iterate(): AsyncIterableIterator<T>
[Symbol.asyncIterator](): AsyncIterator<T>