kvarn

Module shutdown

source
Expand description

Graceful shutdown for Kvarn.

This is handled through a Manager and several helper structs. The Manager is returned from RunConfig::execute and can be awaited to pause execution till the server is shut down. It is also used to trigger a shutdown.

Structsยง

  • Shutdown manager. Contains a counter of connections and a shutdown flag to determine when to initiate a shutdown.