UNPKG

@reactivex/ix-esnext-esm

Version:

The Interactive Extensions for JavaScript

31 lines (29 loc) 833 B
import { AsyncIterableX } from './asynciterablex'; export class OnErrorResumeNextAsyncIterable extends AsyncIterableX { constructor(source) { super(); this._source = source; } async *[Symbol.asyncIterator]() { for (const item of this._source) { const it = item[Symbol.asyncIterator](); while (1) { let next; try { next = await it.next(); } catch (e) { break; } if (next.done) { break; } yield next.value; } } } } export function onErrorResumeNext(...args) { return new OnErrorResumeNextAsyncIterable(args); } //# sourceMappingURL=onerrorresumenext.mjs.map