Service allowing registration of prioritised tasks to run during CLI shutdown.
Readonly
True once shutdown has been requested (e.g. first Ctrl-C in long-running mode).
Enter long-running mode where the first Ctrl-C sets a cooperative flag instead of exiting, and a third Ctrl-C forces exit.
Leave long-running mode, restoring default single Ctrl-C exit behavior.
Register a ShutdownTask to run during graceful shutdown.
Service allowing registration of prioritised tasks to run during CLI shutdown.