@reactivex/ix-esnext-esm
Version:
The Interactive Extensions for JavaScript
1 lines • 1.26 kB
Source Map (JSON)
{"version":3,"sources":["asynciterable/operators/mergeall.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC;;;;;;GAMG;AACH,MAAM,UAAU,QAAQ;IACtB,OAAO,SAAS,wBAAwB,CACtC,MAA6C;QAE7C,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAkC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IAChF,CAAC,CAAC;AACJ,CAAC","file":"mergeall.js","sourcesContent":["import { AsyncIterableX } from '../asynciterablex';\nimport { as } from '../as';\nimport { flatMap } from './flatmap';\nimport { OperatorAsyncFunction } from '../../interfaces';\n\n/**\n * Merges elements from all inner async-iterable sequences into a single async-iterable sequence.\n *\n * @export\n * @template TSource The type of the elements in the source sequences.\n * @returns {OperatorAsyncFunction<AsyncIterable<TSource>, TSource>} The async-iterable sequence that merges the elements of the inner sequences.\n */\nexport function mergeAll<TSource>(): OperatorAsyncFunction<AsyncIterable<TSource>, TSource> {\n return function mergeAllOperatorFunction(\n source: AsyncIterable<AsyncIterable<TSource>>\n ): AsyncIterableX<TSource> {\n return as(source)['pipe'](flatMap<AsyncIterable<TSource>, TSource>((s) => s));\n };\n}\n"]}