@naturalcycles/nodejs-lib
Version:
Standard library for Node.js
10 lines (9 loc) • 540 B
TypeScript
/// <reference types="node" />
import { TransformOpt, WritableTyped } from '../stream.model';
/**
* Allows "forking" a stream inside pipeline into a number of pipeline chains (2 or more).
* Currently does NOT (!) maintain backpressure.
* Error in the forked pipeline will propagate up to the main pipeline (and log error, to be sure).
* Will wait until all forked pipelines are completed before completing the stream.
*/
export declare function writableFork<T>(chains: NodeJS.WritableStream[][], opt?: TransformOpt): WritableTyped<T>;