Rx.Observable.amb(...args)

</rx-marbles>

Propagates the observable sequence or Promise that reacts first. "amb" stands for ambiguous.

Arguments

  1. args (Array|arguments): Observable sources or Promises competing to react first either as an array or arguments.

Returns

(Observable): An observable sequence that surfaces any of the given sequences, whichever reacted first.

Example

Using Observable sequences

Using Promises and Observables