Server.shutdown
Stop accepting clients and wait for every active client process.
Source and package
- Qualified name
-
libtmux::server:: Server:: shutdown - Module
- server
- Declared in
Server- Package
- libtmux
- Source
- crates/libtmux/src/server.rs
-
Description#
Shutdown is idempotent and affects every clone of this server. It never stops the tmux daemon itself. Await it before dropping the Tokio runtime when deterministic reaping matters. With control mode enabled, this also closes persistent control connections.
Errors
Propagates failures reported by the shared executor shutdown boundary.
Examples#
let server = libtmux::Server::new()?;server.shutdown().await?;server.shutdown().await?;
Guides#
Pages that discuss shutdown.