This is RxJS v 4. Find the latest version here
Continues an observable sequence that is terminated normally or by an exception with the next observable sequence or Promise.
args
(Array|arguments): Observable sequences to concatenate.
(Observable
): An observable sequence that concatenates the source sequences, even if a sequence terminates exceptionally.
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
File:
Dist:
Prerequisites:
NPM Packages:
NuGet Packages:
Unit Tests: