merge.js 479 B

123456789101112
  1. import { operate } from '../util/lift';
  2. import { mergeAll } from './mergeAll';
  3. import { popNumber, popScheduler } from '../util/args';
  4. import { from } from '../observable/from';
  5. export function merge(...args) {
  6. const scheduler = popScheduler(args);
  7. const concurrent = popNumber(args, Infinity);
  8. return operate((source, subscriber) => {
  9. mergeAll(concurrent)(from([source, ...args], scheduler)).subscribe(subscriber);
  10. });
  11. }
  12. //# sourceMappingURL=merge.js.map