@johngw/stream
Version:
Reactive programming tools using the WHATWG Streams API.
17 lines • 451 B
TypeScript
/**
* Returns a `ReadableStream` that mirrors the first source stream to queue an item.
*
* @group Sources
* @example
* ```
* race([
* ----20----40----60------
* --1-----2-----3---------
* -----------0-----0----0-
* ])
*
* --1-----2-----3---------
* ```
*/
export declare function race<T>(streams: ReadableStream<T>[], queuingStrategy?: QueuingStrategy<T>): import("node:stream/web").ReadableStream<T>;
//# sourceMappingURL=race.d.ts.map