Creates an object that represents an OnCompleted notification to an observer.
(Notification): The OnCompleted notification.
{% if book.isPdf %}
var source = Rx.Observable
.fromArray([
Rx.Notification.createOnCompleted()
])
.dematerialize();
var subscription = source.subscribe(
x => console.log(`onNext: ${x}`),
e => console.log(`onError: ${e}`),
() => console.log('onCompleted'));
// => onCompleted
{% else %}
{% endif %}
{% if book.isPdf %}
{% else %}
- rx.js
{% endif %}