Options
All
  • Public
  • Public/Protected
  • All
Menu

RXJS subscription collection, to easily collect multiple subscriptions and unsubscribe all at once. Added subscriptions are automatically removed when they get unsubscribed.

example
const subs = new Subscriptions();

subs.add = new Subscription(() => {});
subs.add = observeable.subscribe((next) => {});

subs.unsubscribe();

Hierarchy

  • Subscriptions

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • new Subscriptions(teardown?: undefined | function): Subscriptions
  • Parameters

    • Optional teardown: undefined | function

    Returns Subscriptions

Properties

list

list: Subscription[] = []

Protected Optional teardown

teardown: undefined | function

Accessors

add

  • set add(v: Subscription): void
  • Parameters

    • v: Subscription

    Returns void

Methods

unsubscribe

  • unsubscribe(): void
  • Returns void

Generated using TypeDoc