Class Subscriptions

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

Constructors

Properties

Accessors

Methods

Constructors

Properties

list: Subscription[] = []
teardown?: (() => void | Promise<void>)

Type declaration

    • (): void | Promise<void>
    • Returns void | Promise<void>

Accessors

Methods

Generated using TypeDoc