Skip to content

race

The input streams or subjections compete, returning a new stream that forks from the stream that pushes data first.

image

  • Type

    typescript
    type race: (...args: (Stream | Subjection)[]) => Stream;
  • Details

    • After the input stream unsubscribes or finishes, the new stream will also unsubscribe or finish.