@reactivex/ix-es5-esm
Version:
The Interactive Extensions for JavaScript
20 lines (18 loc) • 698 B
JavaScript
import { __read, __spreadArray } from "tslib";
import { RaceAsyncIterable } from '../race.js';
/**
* Propagates the async sequence that reacts first.
*
* @param {...AsyncIterable<T>[]} sources The source sequences.
* @return {MonoTypeOperatorAsyncFunction<TSource> } An async sequence that surfaces either of the given sequences, whichever reacted first.
*/
export function raceWith() {
var sources = [];
for (var _i = 0; _i < arguments.length; _i++) {
sources[_i] = arguments[_i];
}
return function raceWithOperatorFunction(source) {
return new RaceAsyncIterable(__spreadArray([source], __read(sources), false));
};
}
//# sourceMappingURL=racewith.js.map