Module graceful
Expand description
Shutdown management for graceful shutdown of async-first applications.
Structs§
- Shutdown
- The
Shutdown
struct is the main entry point to the shutdown system. - Shutdown
Builder ShutdownBuilder
to build aShutdown
manager.- Shutdown
Guard - A guard, linked to a
Shutdown
struct, prevents theShutdown::shutdown
future from completing. - Weak
Shutdown Guard - A weak guard, linked to a
Shutdown
struct, is similar to aShutdownGuard
but does not prevent theShutdown::shutdown
future from completing.
Functions§
- default_
signal - Returns a
Future
that completes once one of the default signals.