UNPKG

@reactivex/ix-esnext-esm

Version:

The Interactive Extensions for JavaScript

19 lines (17 loc) 422 B
import { AsyncIterableX } from './asynciterablex'; export class OfAsyncIterable extends AsyncIterableX { constructor(args) { super(); this._args = args; } async *[Symbol.asyncIterator]() { for (const item of this._args) { yield item; } } } /** @nocollapse */ export function of(...args) { return new OfAsyncIterable(args); } //# sourceMappingURL=of.mjs.map