Notifies the observer of the end of the sequence.
{% if book.isPdf %}
var observer = Rx.Observer.create(
x => console.log(`onNext: ${x}`),
e => console.log(`onError: ${e}`),
() => console.log('onCompleted'));
observer.onCompleted();
// => onCompleted
{% else %}
{% endif %}
{% if book.isPdf %}
{% else %}
- rx.js
{% endif %}