-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Convert RxJava Flowable to Flow and elements seem to be delayed or skipped to collect when onErrorReturnItem called. #1766
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
Comments
Note, that is also reproduces with other operators (like |
As a temporary workaround, please use |
Since you are using blocking inside |
This is not a bug, but an intended behaviour of RxJava. E.g. you can observe the same behaviour using only Rx:
Meanwhile, we will add buffering by default to |
…nts one by one in a default configuration Also, partially masks #1766
…nts one by one in a default configuration Also, partially masks #1766
Behaves as expected, additional buffering was introduced in 1.3.4 |
Hi, I use
asFlow
to convert rxjavaFlowable
toFlow
.The producer is slower than consumer, but the result is strange:
If I use
BackpressureStrategy.LATEST
,the consumer will only get 0 and 4 (the first and the last):I finally figure out that it may be related to the
onErrorReturnItem(-1)
call. If I comment it out, the result seems as expected:The text was updated successfully, but these errors were encountered: