|
| 1 | +### `Rx.Observable.prototype.materialize()` |
| 2 | +[Ⓢ](https://github.com/Reactive-Extensions/RxJS/blob/master/src/core/linq/observable/materialize.js "View in source") |
| 3 | + |
| 4 | +Materializes the implicit notifications of an observable sequence as explicit notification values. |
| 5 | + |
| 6 | +#### Returns |
| 7 | +*(`Observable<Notification>`)*: An observable sequence containing the materialized notification values from the source sequence. |
| 8 | + |
| 9 | +#### Example |
| 10 | +```js |
| 11 | +var source = Rx.Observable.of(1,2,3).materialize(); |
| 12 | + |
| 13 | +var subscription = source.subscribe( |
| 14 | + function (x) { |
| 15 | + console.log('Next: %s', x); |
| 16 | + }, |
| 17 | + function (err) { |
| 18 | + console.log('Error: %s', err); |
| 19 | + }, |
| 20 | + function () { |
| 21 | + console.log('Completed'); |
| 22 | + }); |
| 23 | + |
| 24 | +// => Next OnNext(1) |
| 25 | +// => Next OnNext(2) |
| 26 | +// => Next OnNext(3) |
| 27 | +// => Next OnCompleted() |
| 28 | +// => Completed |
| 29 | +``` |
| 30 | +### Location |
| 31 | + |
| 32 | +File: |
| 33 | +- [`/src/core/linq/observable/materialize.js`](https://github.com/Reactive-Extensions/RxJS/blob/master/src/core/linq/observable/materialize.js) |
| 34 | + |
| 35 | +Dist: |
| 36 | +- [`rx.all.js`](https://github.com/Reactive-Extensions/RxJS/blob/master/dist/rx.all.js) |
| 37 | +- [`rx.all.compat.js`](https://github.com/Reactive-Extensions/RxJS/blob/master/dist/rx.all.compat.js) |
| 38 | +- [`rx.js`](https://github.com/Reactive-Extensions/RxJS/blob/master/dist/rx.js) |
| 39 | +- [`rx.compat.js`](https://github.com/Reactive-Extensions/RxJS/blob/master/dist/rx.compat.js) |
| 40 | +- [`rx.lite.js`](https://github.com/Reactive-Extensions/RxJS/blob/master/dist/rx.lite.js) |
| 41 | +- [`rx.lite.compat.js`](https://github.com/Reactive-Extensions/RxJS/blob/master/dist/rx.lite.compat.js) |
| 42 | + |
| 43 | +NPM Packages: |
| 44 | +- [`rx`](https://www.npmjs.org/package/rx) |
| 45 | + |
| 46 | +NuGet Packages: |
| 47 | +- [`RxJS-Complete`](http://www.nuget.org/packages/RxJS-Complete/) |
| 48 | +- [`RxJS-Main`](http://www.nuget.org/packages/RxJS-Main/) |
| 49 | +- [`RxJS-Lite`](http://www.nuget.org/packages/RxJS-Lite/) |
| 50 | + |
| 51 | +Unit Tests: |
| 52 | +- [`/tests/observable/materialize.js`](https://github.com/Reactive-Extensions/RxJS/blob/master/tests/observable/materialize.js) |
0 commit comments