hyperlane-plugin-shutdown 22.14.0

A graceful shutdown coordinator plugin for the Hyperlane framework providing OS signal arming (SIGINT/SIGTERM), lock-free in-flight request draining, bounded drain timeouts, LIFO async shutdown callbacks, and ServerControlHook integration.
Documentation
1
2
3
4
5
6
7
use super::*;

/// Boxed `Send` future returned by an async [`ShutdownCallback`].
pub type ShutdownFuture<'a> = Pin<Box<dyn Future<Output = ()> + Send + 'a>>;

/// Thread-safe shared reference to a pluggable [`ShutdownCallback`].
pub type SharedShutdownCallback = Arc<dyn ShutdownCallback>;