This is RxJS v 4. Find the latest version here
Dematerializes the explicit notification values of an observable sequence as implicit notifications.
(Observable
): An observable sequence exhibiting the behavior corresponding to the source sequence's notification values.
var source = Rx.Observable
.from([
Rx.Notification.createOnNext(42),
Rx.Notification.createOnError(new Error('woops'))
])
.dematerialize();
var subscription = source.subscribe(
function (x) {
console.log('Next: %s', x);
},
function (err) {
console.log('Error: %s', err);
},
function () {
console.log('Completed');
});
// => Next: 42
// => Error: Error: woops
File:
Dist:
NPM Packages:
NuGet Packages:
Unit Tests: