You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Single.subscribe(onSuccess, onError) , the returned Disposable is not disposed after terminal event. However , for Observable, Flowable, Maybe and Completable , the results are all disposed.
Single Success
Single Disposed: false
Observable Next
Observable Complete
Observable Disposed: true
I found the Disposeable not lazySet to DISPOSED in ConsumerSingleObserver compared with LambdaObserver. Is this a bug or there are some special reasons to do this?
The text was updated successfully, but these errors were encountered:
kxfeng
changed the title
Disposable returned from Single.subscribe() is not disposed after terminal event
2.x: Disposable returned from Single.subscribe() is not disposed after terminal event
Mar 8, 2017
I am unable to understand the conclusion here. Is disposable supposed to be auto-disposed for Single? I wrote some code and i see it is not disposed. Is it the right behavior?
When using Single.subscribe(onSuccess, onError) , the returned Disposable is not disposed after terminal event. However , for Observable, Flowable, Maybe and Completable , the results are all disposed.
Here is the test code:
Output:
I found the Disposeable not lazySet to DISPOSED in ConsumerSingleObserver compared with LambdaObserver. Is this a bug or there are some special reasons to do this?
RxJava 2.0.6
The text was updated successfully, but these errors were encountered: