pub fn create_shutdown_event_monitor<TYPES: NodeType, I: NodeImplementation<TYPES>, V: Versions>(
    handle: &SystemContextHandle<TYPES, I, V>
) -> BoxFuture<'static, ()>
Expand description

Creates a monitor for shutdown events.

§Returns

A BoxFuture<'static, ()> that resolves when a HotShotEvent::Shutdown is detected.

§Usage

Use in select! macros or similar constructs for graceful shutdowns: