@effect-ts/system
Version:
Effect-TS is a zero dependency set of libraries to write highly productive, purely functional TypeScript at scale.
12 lines (11 loc) • 486 B
JavaScript
import * as FlattenPar from "./flattenPar.mjs";
import * as FromIterable from "./fromIterable.mjs";
/**
* Merges a variable list of streams in a non-deterministic fashion.
* Up to `n` streams may be consumed in parallel and up to
* `outputBuffer` chunks may be buffered by this operator.
*/
export function mergeAll(n, outputBuffer = 16) {
return (...streams) => FlattenPar.flattenPar_(FromIterable.fromIterable(streams), n, outputBuffer);
}
//# sourceMappingURL=mergeAll.mjs.map