Skip to content

Flowable.reduce(BiFunction) does not signal NoSuchElementException #6195

Description

@akarnokd

The JavaDocs of Flowable.reduce(BiFunction) incorrectly mentions that an empty source results in a NoSuchElementException. It returns a Maybe thus an empty source will result in an empty Maybe. The Observable.reduce(BiFunction) counterpart has the correct text.

The "If the source is empty, a NoSuchElementException is signaled." should be removed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions