Expand description
A utility for signaling that an async task should do a clean shutdown, and a utility listening for such signals
Structs§
- Shutdown
Receiver - Contains methods to wait for a “clean shutdown” signal in asynchronous tasks.
- Shutdown
Sender - Contains methods to send a “clean shutdown” signal to asynchronous tasks.
Functions§
- create_
shutdown - Create a linked ShutdownSender and ShutdownReceiver pair. The receiver’s watch method will not return until the ShutdownSender’s shutdown method is called.