Module graceful
Expand description
Shutdown management for graceful shutdown of async-first applications.
Structs§
- Shutdown
- The
Shutdownstruct is the main entry point to the shutdown system. - Shutdown
Builder ShutdownBuilderto build aShutdownmanager.- Shutdown
Guard - A guard, linked to a
Shutdownstruct, prevents theShutdown::shutdownfuture from completing. - Weak
Shutdown Guard - A weak guard, linked to a
Shutdownstruct, is similar to aShutdownGuardbut does not prevent theShutdown::shutdownfuture from completing.
Functions§
- default_
signal - Returns a
Futurethat completes once one of the default signals.