-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subscription not disposed after onComplete with RxJava 2.x #5283
Comments
Generally, if you don't dispose a disposable received via In practice, there shouldn't be any reason to call In the reactive world, you react to termination via the appropriate onXXX method, compose in the continuation or simply side-effect via Sidenote: One of the smaller but ever growing regret of mine is that I let |
Thanks a lot for your "reactivity" and your explanations! |
Related question: Is this still true or should |
That's no longer true. The preferred operator is Would you like to post a PR that removes that note? If so, please check the other base types for the equivalent operator as there might be copy-pasted all over the place. |
Okay, thanks for clarifying. I can update the JavaDoc note later today. |
Hello
I am not sure this is an issue, I would rather say this is a question.
I have noticed a different behavior between RxJava 1.x and RxJava 2.x
When an observable is completed, with RxJava 1.x subscriptions get unsubscribed:
However with RxJava2, the subscription is not disposed when the observable is completed:
Is it a wanted behavior? If so is this behavior documented somewhere?
Thanks a lot for your help
The text was updated successfully, but these errors were encountered: