Skip to content
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.

Latest commit

 

History

History
54 lines (44 loc) · 1.92 KB

dematerialize.md

File metadata and controls

54 lines (44 loc) · 1.92 KB

Rx.Observable.prototype.dematerialize()

Dematerializes the explicit notification values of an observable sequence as implicit notifications.

Returns

(Observable): An observable sequence exhibiting the behavior corresponding to the source sequence's notification values.

Example

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

Location

File:

Dist:

NPM Packages:

NuGet Packages:

Unit Tests: