-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Closed
Milestone
Description
I've expected that Observable.using flow is:
- create resource
- creates resource using observable, subscribe
- finish/cancel resource-using observable
- dispose resource
But for me actual is sometimes
- create resource
- creates resource using observable, subscribe
- dispose resource
- finish/cancel resource-using observable
As I understand, using 'eager' makes second flow consistent,but i need first behavior, which is not observed on dispose() call - resource is disposed first always, then observable. What is correct way to make Observable which is not eager even on dispose?
RxJava/src/main/java/io/reactivex/internal/operators/observable/ObservableUsing.java
Line 151 in 5278124
public void dispose() { |