You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling combineLatest from Kotlin is a bit awkward. The function has a lot of different parameters, including Iterable, Array as well as 2-x call sites for passing multiple Observables.
Is it possible to prefix these so we have some kind of combineLatestFromIterable which takes the Iterable<T>:
combineLatestArray would be reasonable and match the other xArray method names. What's the conflict between combineLatest(Iterable, F) and combineLatest(O1, O2, F2)?
There should not be any issues with combineLatest(Iterable, F) and combineLatest(O1, O2, F2). I'd just go for consistency. Looking at startWithIterable.
startWithIterable was disambiguated due to startWith(Publisher) and/or startWith(T) so I'd say is an exception. So if the main trouble is with combineLatest(O[], F) then let's rename that to combineLatestArray.
zip could use some name clarification too. There is zip(Iterable(P), F), zipIterable(Iterable(P), bool, int, F), zipArray(F, O...), zip(P(P)).
Activity
akarnokd commentedon Aug 27, 2019
combineLatestArraywould be reasonable and match the otherxArraymethod names. What's the conflict betweencombineLatest(Iterable, F)andcombineLatest(O1, O2, F2)?The varargs variant could be removed.
vanniktech commentedon Aug 27, 2019
There should not be any issues with
combineLatest(Iterable, F)andcombineLatest(O1, O2, F2). I'd just go for consistency. Looking atstartWithIterable.akarnokd commentedon Aug 27, 2019
startWithIterablewas disambiguated due tostartWith(Publisher)and/orstartWith(T)so I'd say is an exception. So if the main trouble is withcombineLatest(O[], F)then let's rename that tocombineLatestArray.zipcould use some name clarification too. There iszip(Iterable(P), F),zipIterable(Iterable(P), bool, int, F),zipArray(F, O...),zip(P(P)).vanniktech commentedon Aug 28, 2019
Closed by #6635 & #6640