Skip to content

Latest commit

 

History

History
56 lines (42 loc) · 2.15 KB

onerrorresumenext.md

File metadata and controls

56 lines (42 loc) · 2.15 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: