DisposablePort
Interface
Section titled “Interface”export interface DisposablePort { destroy(): void;}PURPOSE
Section titled “PURPOSE”A port to release resources (event listeners, timers, etc.).
Called from Simulator.destroy() to dispose each Clock.
| Method | Description |
|---|---|
destroy() | Releases all held resources |
ClockPort inherits this port.
Calling Simulator.destroy() executes the destroy() method of all registered Clocks in sequence.