Skip to content

concatMap() invokes inner.cancel() after inner has signaled onComplete() #6259

Closed

Description

@ylecaillez

Reproduced with RxJava version: 2.1.9 and 2.2.3.

Flowable.just(Boolean.TRUE)
        .repeat()
        .concatMap(token -> Flowable.just("foo").doOnCancel(() -> System.out.println("Cancelled")))
        .subscribe();

Expected behavior: "Cancelled" should not appear on the console
Current behavior: "Cancelled" is printed as a result of cancel invocation.

Note that flatMap(token -> ..., 1) don't have this issue but it is significantly slower than concatMap()

Activity

  1. akarnokd commented on Oct 24, 2018

    @akarnokd
    Member

    See #6258.

  2. added this to the 2.2 backlog milestone on Oct 24, 2018
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