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