-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
PublishSubject with subscribeOn ==> loss of data during onNext calls #5575
Comments
looks like the same issue: #2805 |
And the answer is the same. There is a race between |
Is it possible to use something similar to |
Don't use |
Thanks! |
Library version: 1.3.0
Run Test N times (I try at least 10), flaky behavior. Very often subscribers do not receive the value:
I play with test and found that the reason of failure is only one line:
replacement of
subscribeOn
byobserveOn
make test working without any problem and return expected result.The text was updated successfully, but these errors were encountered: