I am using RxJava 2.10 and operator
io.reactivex.Flowable#combineLatest(java.lang.Iterable<? extends org.reactivestreams.Publisher<? extends T>>, io.reactivex.functions.Function<? super java.lang.Object[],? extends R>)
but I've seen this behavior in 1.x as well.
Overload of combineLatests (and combineLatestsDelayError) that takes Iterable of Publishers is not emitting any items and 'combiner' function passed to it is not called when iterable is empty. For this operator I would expect it to scale linearly, that is:
- If I pass Iterable of size 2 as a first argument I expect an Array of size 2 to be passed to combiner function
- If I pass Iterable of size 1 as a first argument I expect an Array of size 1 to be passed to combiner function
- If I pass Iterable of size 0 as a first argument I expect an Array of size 0 to be passed to combiner function