Adding eager concats to Single#5976
Conversation
There was a problem hiding this comment.
There is another overload you missed:
public static <T> Flowable<T> concatEager(Publisher<? extends SingleSource<? extends T>> sources)
There was a problem hiding this comment.
Oops - thanks for the review, will update shortly
|
First of all, there is no reason keep the welcome text in the description.
Since this operator relies on |
Codecov Report
@@ Coverage Diff @@
## 2.x #5976 +/- ##
============================================
- Coverage 98.27% 98.25% -0.03%
- Complexity 6019 6021 +2
============================================
Files 656 656
Lines 44037 44040 +3
Branches 6100 6100
============================================
- Hits 43278 43271 -7
- Misses 224 230 +6
- Partials 535 539 +4
Continue to review full report at Codecov.
|
| } | ||
|
|
||
| /** | ||
| * Concatenates a Publisher sequence of Publishers eagerly into a single stream of values. |
There was a problem hiding this comment.
Could you also fix the JavaDoc of the Maybe version?
There was a problem hiding this comment.
good idea, will do
|
|
||
| /** | ||
| * Concatenates a Publisher sequence of Publishers eagerly into a single stream of values. | ||
| * Concatenates a Publisher sequence of Single sources eagerly into a single stream of values. |
There was a problem hiding this comment.
hm.. i can see this "Single sources" instead of SingleSources in a few other places within the Javadoc of the Single class - guess we should fix all?
There was a problem hiding this comment.
Sure. I think they are remnants from the time when there was no SingleSource interface yet.
There was a problem hiding this comment.
oh i see - fixed in all places within the Single class.
|
|
||
| /** | ||
| * Concatenates a Publisher sequence of Publishers eagerly into a single stream of values. | ||
| * Concatenates a Publisher sequence of Maybe sources eagerly into a single stream of values. |
There was a problem hiding this comment.
3 of them found and fixed.

Adding concatEager operator for Singles covering:
concatEager(Publisher<? extends SingleSource<? extends T>> sources)
concatEager(Iterable<? extends SingleSource<? extends T>> sources)
concatArrayEager(SingleSource<? extends T>... sources)
Issue: Single.concatEager is not implemented #5974
Added tests for both methods, I wasn't sure if I should add tests covering just a single element in the vararg list and respectively an iterable with a single element.. any thoughts on this?