> For the complete documentation index, see [llms.txt](https://soufatn.gitbook.io/rxjs-book/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://soufatn.gitbook.io/rxjs-book/summary/observer/observer_instance_methods/oncompleted.md).

# onCompleted

Notifies the observer of the end of the sequence.

### [Example](http://jsbin.com/yuqade/2/edit?js,console)

```javascript
var observer = Rx.Observer.create(
  x => console.log(`onNext: ${x}`),
  e => console.log(`onError: ${e}`),
  () => console.log('onCompleted'));

observer.onCompleted();
// => onCompleted
```

### Example
