Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

method libtmux-rs latest

ServerBuilder.dispatch_limits

Bound how many commands may run at once.

Source and package
Qualified name
libtmux::server::builder::ServerBuilder::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: DispatchLimits ) -> 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
Esc

Type to search.

Reference previewOpen reference