Application.addOnShutdown

The ::shutdown signal is emitted only on the registered primary instance immediately after the main loop terminates.

class Application
void
addOnShutdown

Meta