race

function deprecated

Returns an Observable that mirrors the first source Observable to emit a next, error or complete notification from the combination of this Observable and supplied Observables.

Deprecation Notes

Replaced with raceWith. Will be removed in v8.

race<T>(...args: any[]): OperatorFunction<T, unknown>

Deprecation Notes

Replaced with raceWith. Will be removed in v8.

Parameters

args

Sources used to race for which Observable emits first.

Returns

OperatorFunction<T, unknown>: A function that returns an Observable that mirrors the output of the first Observable to emit an item.

© 2015–2021 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors.
Code licensed under an Apache-2.0 License. Documentation licensed under CC BY 4.0.
https://rxjs.dev/api/operators/race