Interface: OnAppShutdown
Interface for a class that wishes to run logic when the application is shutting down. Useful for cleanup tasks like closing database connections.
Methods
onAppShutdown()
onAppShutdown(
signal?
):void
Method called when the application receives a shutdown signal.
Parameters
signal?
string
The signal that triggered the shutdown (e.g., 'SIGINT').
Returns
void