EMPTY
const stable
The same Observable instance returned by any call to empty without a scheduler. It is preferable to use this over empty().
const EMPTY: Observable<never>;
Description
Just emits 'complete', and nothing else.
Examples
Log complete notification
import { EMPTY } from 'rxjs';
EMPTY.subscribe({
next: () => console.log('Next'),
complete: () => console.log('Complete!')
});
// Outputs
// Complete!
© 2015–2021 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors.
Code licensed under an Apache-2.0 License. Documentation licensed under CC BY 4.0.
https://rxjs.dev/api/index/const/EMPTY