dt-app
Version:
The Dynatrace App Toolkit is a tool you can use from your command line to create, develop, and deploy apps on your Dynatrace environment.
13 lines (12 loc) • 552 B
TypeScript
type ProcessCleanupHandler = () => Promise<void> | void;
/**
* Registers a process cleanup handler to be called during shutdown.
* Handlers are executed in the order they were registered.
*/
export declare function registerProcessCleanup(handler: ProcessCleanupHandler): void;
/**
* Runs all registered process cleanup handlers in order and clears the registry.
* Errors from individual handlers are caught and logged to prevent one failing cleanup from blocking others.
*/
export declare function runProcessCleanups(): Promise<void>;
export {};