Skip to content

Single and Completable takeUntil() #3708

Closed
@ZacSweers

Description

@ZacSweers

In reading the original PR for Single, I saw Ben was OK with adding a takeUntil(Single/Observable) operator for Single later. I was wondering if this was still the plan, and if you would be open to contributions on this front. Same with Completable.

One caveat that I've thought of is that there's a potentially conflicting contact with Single and takeUntil() in the sense that takeUntil() calls onCompleted() in observables, but Singles will actually go to onError() if onCompleted() is called before any events are emitted (and by extension onSuccess()). Not sure what the clear path would be, but it seems like Singles would have to only unsubscribe and not propagate any notifications, differing from Observables and likely Completables in this regard.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions