race.js 730 B

12345678910111213141516
  1. import { race as higherOrder } from '../operators/race';
  2. // NOTE: to support backwards compatability with 5.4.* and lower
  3. export { race as raceStatic } from '../observable/race';
  4. /* tslint:enable:max-line-length */
  5. /**
  6. * Returns an Observable that mirrors the first source Observable to emit an item
  7. * from the combination of this Observable and supplied Observables.
  8. * @param {...Observables} ...observables Sources used to race for which Observable emits first.
  9. * @return {Observable} An Observable that mirrors the output of the first Observable to emit an item.
  10. * @method race
  11. * @owner Observable
  12. */
  13. export function race(...observables) {
  14. return higherOrder(...observables)(this);
  15. }
  16. //# sourceMappingURL=race.js.map