Skip to content

Single<String> requires two flatMapCompletable calls to convert to string #4426

Closed
@ersin-ertan

Description

@ersin-ertan

I tried to solve this problem on stack overflow that deals with:
"Chaining RxJava observables with callbacks/listeners"

I found that two flatMapCompletable calls were required to go from Single<String> to String.

Shouldn't the first flatMapCompletable be able to get the string?
See gist for full anonymous class example

@artem-zinnatullin - Artem comments on one of the solutions
@vanniktech - implmented 1.x: Single.flatMapCompletable#4226

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions