-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.do(onSubscribed:)
and .do(onSubscribe:)
don't respect .observe(on:)
#2636
Comments
In both cases you are subscribing on the main thread. It seems to me that the result you are seeing is correct. Note that if you put the |
I was expecting all operators to behave the same. For example, if I use |
The |
Got it. Then https://github.com/ReactiveX/RxSwift/blob/main/Documentation/Schedulers.md is wrong. From
|
What are you talking about? The example is exactly correct. It seems like you are confused as to the difference between subscription and event propagation. Those are different processes. Use |
Short description of the issue:
1 Case
Looks like
.do(onSubscribed:)
and.do(onSubscribe:)
don't respect.observe(on:)
.example:
result:
expected:
2 Case
Also might be related:
Looks like
.do(onSubscribed:)
and.do(onSubscribe:)
don't respect.subscribe(on:)
if it is abovedo
statement.example:
result:
expected:
The text was updated successfully, but these errors were encountered: