finally is important, as it behaves like promise's finally, in that it will fire a passed handler if the observable errors or completes... however it will also fire if the user unsubscribes from the stream. It's basically just a way to ensure some related teardown happens. Finally is implemented like so:
finally
is important, as it behaves like promise'sfinally
, in that it will fire a passed handler if the observable errors or completes... however it will also fire if the user unsubscribes from the stream. It's basically just a way to ensure some related teardown happens. Finally is implemented like so: