19 lines
No EOL
742 B
JavaScript
19 lines
No EOL
742 B
JavaScript
import { __read, __spreadArray } from "tslib";
|
|
import { operate } from '../util/lift';
|
|
import { argsOrArgArray } from '../util/argsOrArgArray';
|
|
import { mergeAll } from './mergeAll';
|
|
import { popNumber, popScheduler } from '../util/args';
|
|
import { from } from '../observable/from';
|
|
export function merge() {
|
|
var args = [];
|
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
args[_i] = arguments[_i];
|
|
}
|
|
var scheduler = popScheduler(args);
|
|
var concurrent = popNumber(args, Infinity);
|
|
args = argsOrArgArray(args);
|
|
return operate(function (source, subscriber) {
|
|
mergeAll(concurrent)(from(__spreadArray([source], __read(args)), scheduler)).subscribe(subscriber);
|
|
});
|
|
}
|
|
//# sourceMappingURL=merge.js.map
|