Module shutdown

Source
Expand description

A utility for signaling that an async task should do a clean shutdown, and a utility listening for such signals

Structs§

ShutdownReceiver
Contains methods to wait for a “clean shutdown” signal in asynchronous tasks.
ShutdownSender
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.