项目原始demo,不改动
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

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