English
Class: D3PSubscriptions
Defined in: core/bus.ts:150
Collects unsubscribe functions to release them all at once.
Constructors
Constructor
ts
new D3PSubscriptions(): D3PSubscriptions;Returns
D3PSubscriptions
Methods
add()
ts
add(off): D3PUnsubscribe;Defined in: core/bus.ts:153
Keeps a way to unsubscribe, to release it later with clear. Returns it unchanged.
Parameters
off
Returns
clear()
ts
clear(): void;Defined in: core/bus.ts:158
Calls and forgets every unsubscribe function that was added.
Returns
void