When to use doOnTerminate vs doOnUnsubscribe?
问题 I need to be notified when something subscribes to my observable. I also need to be notified that the observable has either errored or completed. So I thought I should use doOnSubscribe : register an action to take when an observer subscribes to an Observable and doOnTerminate : register an action to take when an Observable completes, either successfully or with an error Then I saw doOnUnsubscribe : register an action to take when an observer unsubscribes from an Observable and thought the