• Merges multiple streams in to 1 ReadableStream.

    Warning: this may create a bottleneck as the highwater mark can easily be breached. This is because every pull will attempt to read and queue at least one chunk from each incoming stream.

    Type Parameters

    • RSs extends ReadableStream<unknown>[]

    Parameters

    Returns ReadableStream<ReadableStreamsChunk<RSs>>

    See

    roundRobin:function

    Example

    merge([
    --1----2----3-------4-|
    ---one---two---three---four-|
    ])

    -1-one-2-two-3-three-4-four-|

Generated using TypeDoc