This may be a dumb question, but how do I get Disposable when subscribing to a Subject to Observable in RxJava 2.0?
For instance:
observable.subscribeWith( behaviorSubject)
doesn't return Disposable ? How to cancel such a subscription?
Or another example with CompositeDisposable :
compositeDisposable.add( observable.subscribeWith( behaviorSubject) ) )
This does not compile because subscribeWith( behaviorSubject ) does not return one-time.
How to unsubscribe / delete / cancel correctly using Subjects?
source share