race
The input streams or subjections compete, returning a new stream that forks from the stream that pushes data first.
Type
typescripttype race: (...args: (Stream | Subjection)[]) => Stream;
Details
- After the input stream unsubscribes or finishes, the new stream will also unsubscribe or finish.