Skip to content

Latest commit

 

History

History
46 lines (27 loc) · 801 Bytes

createoncompleted.md

File metadata and controls

46 lines (27 loc) · 801 Bytes

Creates an object that represents an OnCompleted notification to an observer.

Returns

(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 %}

Example

{% endif %}

{% if book.isPdf %}

{% else %}

Location

  • rx.js

{% endif %}