UNPKG

@naturalcycles/nodejs-lib

Version:
12 lines (11 loc) 568 B
/// <reference types="node" /> import { TransformOptions, 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. * * @experimental */ export declare function writableFork<T>(chains: NodeJS.WritableStream[][], opt?: TransformOptions): WritableTyped<T>;