server.builder.ServerBuilder.dispatch_limits
Rust
- Python Unavailable
- Ruby Unavailable
- Lua Unavailable
- TypeScript Unavailable
- Rust
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
- Module
- server.builder
- Declared in
- ServerBuilder
- Package
- libtmux
- Source
- crates/libtmux/src/server/builder.rs
- dispatch_limits ( mut , limits : DispatchLimits ) Self
-
Bound how many commands may run at once.
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()?;
0 declared, 0 inherited