Skip to content

Latest commit

 

History

History
55 lines (41 loc) · 2.07 KB

onerrorresumenext.md

File metadata and controls

55 lines (41 loc) · 2.07 KB

Rx.Observable.onErrorResumeNext(...args)

Continues an observable sequence that is terminated normally or by an exception with the next observable sequence or Promise.

Arguments

  1. args (Array|arguments): Observable sequences to concatenate.

Returns

(Observable): An observable sequence that concatenates the source sequences, even if a sequence terminates exceptionally.

Example

var source1 = Rx.Observable.throw(new Error('error 1'));
var source2 = Rx.Observable.throw(new Error('error 2'));
var source3 = Rx.Observable.return(42);

var source = Rx.Observable.onErrorResumeNext(source1, source2, source3);

var subscription = source.subscribe(
    function (x) {
        console.log('Next: ' + x);
    },
    function (err) {
        console.log('Error: ' + err);
    },
    function () {
        console.log('Completed');
    });

// => Next: 42
// => Completed

Location

File:

Dist:

Prerequisites:

NPM Packages:

NuGet Packages:

Unit Tests: