UNPKG

@daiso-tech/core

Version:

The library offers flexible, framework-agnostic solutions for modern web applications, built on adaptable components that integrate seamlessly with popular frameworks like Next Js.

26 lines 720 B
/** * @module Collection */ import { isIterable, resolveAsyncIterableValue, } from "../../../../utilities/_module.js"; /** * @internal */ export class AsyncMergeIterable { iterables; constructor(iterables) { this.iterables = iterables; } async *[Symbol.asyncIterator]() { if (isIterable(this.iterables)) { for (const iterable of this.iterables) { yield* resolveAsyncIterableValue(iterable); } } else { for await (const iterable of resolveAsyncIterableValue(this.iterables)) { yield* resolveAsyncIterableValue(iterable); } } } } //# sourceMappingURL=async-merge-iterable.js.map