-
Notifications
You must be signed in to change notification settings - Fork 519
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
Unused unsubscribe
method on CompletableUseCase
#32
Comments
unsubscribe
method on CompletableUseCase
unsubscribe
method on CompletableUseCase
Any example for CompletableUseCase? |
@DevKate In this case it's most probably a mistake.
or return a The choice between these two depends on whether you need to have access to a cold Observable in your Presenters (e.g. to combine them or apply some additional logic). I prefer using the latter in any case. |
@852dev Example usage? Saving some data to the database, for example. Anything where we don't need any actual data passed back to us, only the success/error status. |
It looks like we're just creating an empty disposable in this class and disposing of it in
unsubscribe
without ever changing its value. In theSingleUseCase
class, we pass an observer into theexecute
method and capture a reference to the subscription by subscribing inside of thhat method. I would have expected the same to happen in this class, or if the idea is that we subscribe manually from our presenter, shouldn't we also unsubscribe manually and remove thisunsubscribe
method altogether?The text was updated successfully, but these errors were encountered: