This is RxJS v 4. Find the latest version here

July 18, 2017 · View on GitHub

Rx.Observable.prototype.materialize()

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

Returns

(Observable<Notification>): An observable sequence containing the materialized notification values from the source sequence.

Example

var source = Rx.Observable.of(1,2,3).materialize();

var subscription = source.subscribe(
  function (x) {
    console.log('Next: %s', x);
  },
  function (err) {
    console.log('Error: %s', err);
  },
  function () {
    console.log('Completed');
  });

// => Next OnNext(1)
// => Next OnNext(2)
// => Next OnNext(3)
// => Next OnCompleted()
// => Completed

Location

File:

Dist:

NPM Packages:

NuGet Packages:

Unit Tests: