GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — 3.x: constrain upstream requests from take, remove limit operator by davidmoten · Pull Request #6650 · ReactiveX/RxJava Conversation
|
There was an error while loading. Please reload this page.
Codecov Report
@@ Coverage Diff @@ ## 3.x #6650 +/- ## ============================================ - Coverage 98.11% 98.08% -0.04% + Complexity 6191 6186 -5 ============================================ Files 678 677 -1 Lines 44722 44674 -48 Branches 6176 6166 -10 ============================================ - Hits 43880 43818 -62 - Misses 294 302 +8 - Partials 548 554 +6
Continue to review full report at Codecov.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| if (!get() && compareAndSet(false, true)) { | ||
| if (n >= limit) { | ||
| upstream.request(Long.MAX_VALUE); | ||
| while (true) { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Why not use the limit() internals?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| * Limits both the number of upstream items (after which the sequence completes) | ||
| * and the total downstream request amount requested from the upstream to | ||
| * possibly prevent the creation of excess items by the upstream. | ||
| * <p> |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The Javadoc of take should contain these extra information.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Why not simply delete |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Indeed! Will do. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
c2d9279 to
c499746
Compare
c499746 to
426c817
Compare
|
Copied code from |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.