finalize / finally
signature: finalize(callback: () => void)
finalize(callback: () => void)
Call a function when observable completes or errors
Examples
Example 1: Execute callback function when the observable completes
( StackBlitz )
Related Recipes
Additional Resources
finalize 📰 - Official docs
📁 Source Code: https://github.com/ReactiveX/rxjs/blob/master/src/internal/operators/finalize.ts
Last updated