Rx.Notification.createOnCompleted()
Creates an object that represents an OnCompleted notification to an observer.
返回值
(Notification): The OnCompleted notification.
Example
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