Skip to main content

Mountain/Binary/Shutdown/
mod.rs

1
2//! # Binary::Shutdown
3//!
4//! Graceful shutdown sequences for the Mountain binary.
5//! Called from the Tauri `on_window_event` / `CloseRequested` handler
6//! to drain the Tokio scheduler and terminate the async runtime cleanly
7//! before the process exits.
8
9/// Drain pending tasks and shut down the Tokio runtime.
10pub mod RuntimeShutdown;
11
12/// Flush the task scheduler queue and cancel outstanding timers.
13pub mod SchedulerShutdown;