Skip to content

DisposablePort

export interface DisposablePort {
destroy(): void;
}

A port to release resources (event listeners, timers, etc.). Called from Simulator.destroy() to dispose each Clock.

MethodDescription
destroy()Releases all held resources

ClockPort inherits this port. Calling Simulator.destroy() executes the destroy() method of all registered Clocks in sequence.