Back to Rxjs

This is RxJS v 4. Find the latest version here

doc/api/core/operators/materialize.md

4.1.02.0 KB
Original Source

This is RxJS v 4. Find the latest version here

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

js
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: