-
Notifications
You must be signed in to change notification settings - Fork 7.6k
3.x: Add onBackpressureReduce operator #7129
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
Conversation
Update local fork with latest
Could you please rebase this onto a fresh |
Codecov Report
@@ Coverage Diff @@
## 3.x #7129 +/- ##
============================================
- Coverage 99.54% 99.52% -0.03%
- Complexity 6703 6708 +5
============================================
Files 744 745 +1
Lines 47298 47327 +29
Branches 6373 6375 +2
============================================
+ Hits 47083 47100 +17
- Misses 96 101 +5
- Partials 119 126 +7 Continue to review full report at Codecov.
|
# Conflicts: # src/main/java/io/reactivex/rxjava3/core/Flowable.java # src/main/java/io/reactivex/rxjava3/internal/operators/flowable/AbstractBackpressureThrottlingSubscriber.java # src/main/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableOnBackpressureLatest.java # src/main/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableOnBackpressureReduce.java # src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableOnBackpressureReduceTest.java
done |
"The reducer returned a null value" | ||
)); | ||
} | ||
drain(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
drain()
should be outside the try-catch
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved outside
added one more overloaded version of onBackpressureReduce operator
Changes:
FlowableOnBackpressureReduceWith
AbstractBackpressureThrottlingSubscriber
has two types now T - upstream, R- downstream and inherited by 3 classes:BackpressureLatestSubscriber
,BackpressureReduceSubscriber
andBackpressureReduceWithSubscriber
suggest to review and merge after this PR merged