Hey guys, I'm writing the book Learning RxJava as ...
# rx
t
Hey guys, I'm writing the book Learning RxJava as well as learning some aspects of RxJava 2.0 at the same time. What typically do we do with the
Disposable
when we implement our own
Observer
as a subscriber? I imagine in this example we don't do anything with it. But when implementing custom operators or resource-driven subscribers, I guess that is where it comes in? That way
onNext()
has the ability to call
dispose()
, but then I guess in some cases holding it in a property gives outside access to dispose it as well?