3.x: Disambiguate startWith(T|Iterable)? · Issue #6122 · ReactiveX/RxJava (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Description
We were using postfixes to avoid inference problems around operator methods (such as fromIterable
vs fromArray
) but there is at least one operator currently, startWith
, that may exhibit type ambiguity. A dedicated postfixed name should resolve the issue, such as:
startWith(T)
+startWithIterable(Iterable<T>)
startWithItem(T)
+startWith(Iterable<T>)
+ removestartWith(T)
startWithItem(T)
+startWithIterable(Iterable<T>)
+ removestartWith(T)
.
As a preparation, we can deprecate startWith(T)
within 2.2.x in case option 2 or 3 is chosen.