RXJS subscription collection, to easily collect multiple subscriptions and unsubscribe all at once. Added subscriptions are automatically removed when they get unsubscribed.
const subs = new Subscriptions();subs.add = new Subscription(() => {});subs.add = observeable.subscribe((next) => {});subs.unsubscribe();
Optional
Readonly
Protected
Generated using TypeDoc
RXJS subscription collection, to easily collect multiple subscriptions and unsubscribe all at once. Added subscriptions are automatically removed when they get unsubscribed.
Example