Skip to content

2.x Flowable.onErrorResumeNext() call is ambiguous when used with lambdas #5303

@mostroverkhov

Description

@mostroverkhov

Consider example

 Flowable.just(1).onErrorResumeNext(err -> Flowable.just(42));

In contrast to Observable 1.x and 2.x., this does not compile because both onErrorResumeNext(Function<Throwable, Publisher<T>> f) and onErrorResumeNext(Publisher<T> p) overloads fit, and has to be worked around with cast or introduction of method instead of lambda.

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