Skip to content

Standardise isUnsubscribed #702

Closed
Closed
@akarnokd

Description

@akarnokd

Would it be possible to add an intermediate interface between Subscription and the default Subscription implementations that exposes the isUnsubscribed method?

I can only offer the use cases in the upcoming rxjava-async-util module where certain operators can use a shared cancellation token. The alternative is to ask the clients to wrap their token into BooleanSubscription and don't forget to unsubscribe it instead of the wrapped subscription.

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