hugoWebsite/node_modules/rxjs/dist/esm/internal/operators/raceWith.js

11 lines
382 B
JavaScript
Raw Normal View History

2022-10-29 00:20:35 +02:00
import { raceInit } from '../observable/race';
import { operate } from '../util/lift';
import { identity } from '../util/identity';
export function raceWith(...otherSources) {
return !otherSources.length
? identity
: operate((source, subscriber) => {
raceInit([source, ...otherSources])(subscriber);
});
}
//# sourceMappingURL=raceWith.js.map