UNPKG

507 BJavaScriptView Raw
1import { AsyncIterableX } from './asynciterablex';
2export class ConcatAllAsyncIterable extends AsyncIterableX {
3 constructor(source) {
4 super();
5 this._source = source;
6 }
7 async *[Symbol.asyncIterator]() {
8 for await (let outer of this._source) {
9 for await (let item of outer) {
10 yield item;
11 }
12 }
13 }
14}
15export function concatAll(source) {
16 return new ConcatAllAsyncIterable(source);
17}
18
19//# sourceMappingURL=concatall.mjs.map