Skip to main content

Mountain/Binary/Shutdown/
mod.rs

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