@johngw/stream
Version:
Reactive programming tools using the WHATWG Streams API.
17 lines (16 loc) • 391 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>): ReadableStream<T>;