在 Observable 生命周期结束时执行操作

Perform action at the end of Observalbe life cycle

当 Observable 完成或中止时,我如何做一些最后的动作?类似于 jQuery Deferred .always() 机制。

看看这里描述的 finally 方法:https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/operators/finally.md