race.js 918B

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