diff options
| author | Pinapelz <yukais@pinapelz.com> | 2025-06-28 17:26:46 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2025-06-28 17:43:56 -0700 |
| commit | e4fa1e69e7ebfb627c7198fd1a9881e9327ec4d4 (patch) | |
| tree | 06284a538a6008eca75051399e47db4e5d50301c /node_modules/rxjs/dist/esm/internal/observable/onErrorResumeNext.js | |
initial commit: scaffolding
Diffstat (limited to 'node_modules/rxjs/dist/esm/internal/observable/onErrorResumeNext.js')
| -rw-r--r-- | node_modules/rxjs/dist/esm/internal/observable/onErrorResumeNext.js | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/node_modules/rxjs/dist/esm/internal/observable/onErrorResumeNext.js b/node_modules/rxjs/dist/esm/internal/observable/onErrorResumeNext.js new file mode 100644 index 0000000..ef74377 --- /dev/null +++ b/node_modules/rxjs/dist/esm/internal/observable/onErrorResumeNext.js @@ -0,0 +1,31 @@ +import { Observable } from '../Observable'; +import { argsOrArgArray } from '../util/argsOrArgArray'; +import { OperatorSubscriber } from '../operators/OperatorSubscriber'; +import { noop } from '../util/noop'; +import { innerFrom } from './innerFrom'; +export function onErrorResumeNext(...sources) { + const nextSources = argsOrArgArray(sources); + return new Observable((subscriber) => { + let sourceIndex = 0; + const subscribeNext = () => { + if (sourceIndex < nextSources.length) { + let nextSource; + try { + nextSource = innerFrom(nextSources[sourceIndex++]); + } + catch (err) { + subscribeNext(); + return; + } + const innerSubscriber = new OperatorSubscriber(subscriber, undefined, noop, noop); + nextSource.subscribe(innerSubscriber); + innerSubscriber.add(subscribeNext); + } + else { + subscriber.complete(); + } + }; + subscribeNext(); + }); +} +//# sourceMappingURL=onErrorResumeNext.js.map
\ No newline at end of file |
