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.
23 lines
891 B
23 lines
891 B
2 years ago
|
"use strict";
|
||
|
var race_1 = require('../operators/race');
|
||
|
// NOTE: to support backwards compatability with 5.4.* and lower
|
||
|
var race_2 = require('../observable/race');
|
||
|
exports.raceStatic = race_2.race;
|
||
|
/* tslint:enable:max-line-length */
|
||
|
/**
|
||
|
* Returns an Observable that mirrors the first source Observable to emit an item
|
||
|
* from the combination of this Observable and supplied Observables.
|
||
|
* @param {...Observables} ...observables Sources used to race for which Observable emits first.
|
||
|
* @return {Observable} An Observable that mirrors the output of the first Observable to emit an item.
|
||
|
* @method race
|
||
|
* @owner Observable
|
||
|
*/
|
||
|
function race() {
|
||
|
var observables = [];
|
||
|
for (var _i = 0; _i < arguments.length; _i++) {
|
||
|
observables[_i - 0] = arguments[_i];
|
||
|
}
|
||
|
return race_1.race.apply(void 0, observables)(this);
|
||
|
}
|
||
|
exports.race = race;
|
||
|
//# sourceMappingURL=race.js.map
|