//! Shutdown helpers for the TUI event loop.
//!
//! Deregisters the TUI agent from the worker bridge when
//! the event loop exits.
//!
//! # Examples
//!
//! ```ignore
//! deregister_bridge(&bridge);
//! ```
use crateTuiWorkerBridge;
/// Deregister the TUI agent from the worker bridge.
///
/// Sends a `DeregisterAgent` command to the bridge if
/// one is active. Errors are silently ignored.
///
/// # Examples
///
/// ```ignore
/// deregister_bridge(&bridge);
/// ```
pub