iter-tools-es
Version:
The iterable toolbox
14 lines (12 loc) • 394 B
JavaScript
const {
asyncWrapWithIterableIterator,
asyncEnsureIterable
} = require('../../internal/async-iterable.js');
async function* __asyncConcat(...sources) {
for (const iterable of sources) {
yield* asyncEnsureIterable(iterable);
}
}
exports.__asyncConcat = __asyncConcat;
const asyncConcat = /*#__PURE__*/asyncWrapWithIterableIterator(__asyncConcat);
exports.asyncConcat = asyncConcat;