Sha256: d696144782d7939c28678e52021027a7eeaccc29348ea2c6aaa02ba5318fb21d
Contents?: true
Size: 964 Bytes
Versions: 49
Compression:
Stored size: 964 Bytes
Contents
import { isArray } from '../util/isArray'; import { race as raceStatic } from '../observable/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 */ export function race(...observables) { return function raceOperatorFunction(source) { // if the only argument is an array, it was most likely called with // `pair([obs1, obs2, ...])` if (observables.length === 1 && isArray(observables[0])) { observables = observables[0]; } return source.lift.call(raceStatic(source, ...observables)); }; } //# sourceMappingURL=race.js.map
Version data entries
49 entries across 49 versions & 4 rubygems