W3cubDocs

/RxJS

race

function deprecated operator

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(otherSources: [...ObservableInputTuple<A>]): OperatorFunction<T, T | A[number]>

Parameters

otherSources [...ObservableInputTuple<A>]

Returns

OperatorFunction<T, T | A[number]>

race(...otherSources: [...ObservableInputTuple<A>]): OperatorFunction<T, T | A[number]>

Parameters

otherSources [...ObservableInputTuple<A>]

Returns

OperatorFunction<T, T | A[number]>

© 2015–2022 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