Skip to content

combineLatest(Iterable<Publisher<>>, Function<>) not emitting on empty iterable  #5412

@Sroka

Description

@Sroka

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions