Is there a point in keeping the `Disposable` of a ...
# rx
i
Is there a point in keeping the
Disposable
of a
Single
around if you don't plan make it cancellable?
🚫 1
u
youre potentially leaking the subscriber anyways
👍 1
a
I think it depends on if you don't want the actual request to be cancelled or if you don't want the action taken after the request to be cancelled. If you're, say, making a network request, RxJava can't cancel the actual network request. That will finish normally. What it can do is make sure that any subscriber won't take any action after the request is finished. So if you want to make sure a network call is finished you can still hold on to the
Disposable
if you don't want an action taken after the call finishes.
i
@alexsullivan114 thanks for the clarification, that's very informative
a
It's probably worth testing that behavior to make sure it's accurate
👍 1