Track a set of active subscriptions. Unsubscribe them all at once.

If a subscription gets unsubscribed, it auto-removes from the set.

Hierarchy

  • SubscriptionSet

Constructors

Properties

Accessors

Methods

Constructors

Properties

subscriptions: Set<Subscription> = ...

Accessors

Methods

  • Start tracking a subscription, so that it is closed with others on +close+.

    Parameters

    • subscription: Subscription

    Returns void