UNPKG

@johngw/stream

Version:

Reactive programming tools using the WHATWG Streams API.

18 lines 606 B
import { type ReadableStreamsChunk } from '@johngw/stream-common/Stream'; /** * Given an ordered list of streams, queue their items from one stream at a time. * * @group Sources * @see {@link merge:function} * @example * ``` * roundRobin([ * --1------2------3------4------- * ----one-two--three------------- * ]) * * --1-one--2-two--3-three-4------ * ``` */ export declare function roundRobin<RSs extends ReadableStream<unknown>[]>(streams: RSs, queuingStrategy?: QueuingStrategy<ReadableStreamsChunk<RSs>>): ReadableStream<ReadableStreamsChunk<RSs>>; //# sourceMappingURL=roundRobin.d.ts.map