TenantAtlas/apps/platform/.pnpm-store/v10/files/82/582fe6dd229675dc4075f43ac3df52a98513670d05374a9ab54ee20cc2c5742e6b3e5f09226db98b87ca206751c70abc24291072e29f4800b4a5050ad57c0d
Ahmed Darrazi 9f74f7a658
Some checks failed
PR Fast Feedback / fast-feedback (pull_request) Failing after 51s
feat: compress governance operator outcomes
2026-04-19 14:15:11 +02:00

19 lines
613 B
Plaintext

import { mergeAll } from '../operators/mergeAll';
import { innerFrom } from './innerFrom';
import { EMPTY } from './empty';
import { popNumber, popScheduler } from '../util/args';
import { from } from './from';
export function merge(...args) {
const scheduler = popScheduler(args);
const concurrent = popNumber(args, Infinity);
const sources = args;
return !sources.length
?
EMPTY
: sources.length === 1
?
innerFrom(sources[0])
:
mergeAll(concurrent)(from(sources, scheduler));
}
//# sourceMappingURL=merge.js.map