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.
second
(Observable
|Promise
): Second observable sequence used to produce results after the first sequence terminates.
(Observable
): An observable sequence that concatenates the first and second sequence, even if the first sequence terminates exceptionally.
var source = Rx.Observable.throw(new Error())
.onErrorResumeNext(Rx.Observable.return(42));
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:
- None
NPM Packages:
NuGet Packages:
Unit Tests: