Skip to content

Single.zip with Iterable<T> overload does not call given zipper function #5912

Closed
@SergejIsbrecht

Description

@SergejIsbrecht

I have discovered that, invoking Single.zip with an empty Iterable will not call given zipper function. Is this behavior by design? I would expect that the zipper function would be called with an empty object-array.

  @Test
  void singleDoesNothing() {
    Single<Object[]> zip =
        Single.zip(
            Collections.emptyList(),
            objects -> {
              return objects;
            });

    zip.test().assertNotComplete().assertNoValues();
  }

Used version: 2.1.7

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions