race
signature: race(): Observable
race(): Observable
The observable to emit first is used.
Examples
Example 1: race with 4 observables
( StackBlitz | jsBin | jsFiddle )
Example 2: race with an error
( StackBlitz | jsFiddle )
Additional Resources
:newspaper: - Official docs
:file_folder: Source Code: https://github.com/ReactiveX/rxjs/blob/master/src/internal/operators/race.ts
Last updated