Reference
registerCleanup
Registers a disposer with the currently active cleanup scope.
Signature
function registerCleanup(dispose: (): void): voidReference
Registers a disposer with the currently active cleanup scope.
function registerCleanup(dispose: (): void): void