ServerBuilder.dispatch_limits
Bound how many commands may run at once.
Source and package
- Qualified name
-
libtmux::server:: builder:: Server Builder:: dispatch _limits - Module
- server.builder
- Declared in
ServerBuilder- Package
- libtmux
- Source
- crates/libtmux/src/server/builder.rs
- #[must_use = "use the returned builder to retain the limits" ] pub const fn dispatch_limits( mut self, limits: Dispatch
Limits ) -> Self -
Description#
Each one is a tmux client process with its own pipes and reader tasks, and tmux serializes them on the far side anyway, so past a point more clients buy queueing rather than throughput. A caller that fans out wide -- an agent, a reconciler sweeping every pane -- otherwise turns its own concurrency into pressure on the machine.
Examples#
use libtmux::DispatchLimits;let server = libtmux::Server::builder().dispatch_limits(DispatchLimits::default().max_in_flight(4)).build()?;- Parameters