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.

struct libtmux-rs latest

DispatchLimits

How much work one server may have in flight at once.

Source and package
Qualified name
libtmux::limits::DispatchLimits
Module
limits
Package
libtmux
Source
crates/libtmux/src/limits.rs
struct limits.DispatchLimits

Description#

Every dispatch is a tmux client process with its own pipes and reader tasks. Without a ceiling, a caller that fans out -- an agent driving the MCP server, a reconciler sweeping every pane -- turns its own concurrency into process, descriptor, and memory pressure on the machine, and tmux itself serializes on the far side regardless.

The client Server::wait_for_channel() parks on a channel is the exception, and is not counted: it is waiting rather than working, and what releases it is a dispatch of its own.

Examples#

use libtmux::DispatchLimits;
let limits = DispatchLimits::default().max_in_flight(4);
assert_eq!(limits.in_flight(), 4);

Members4#

Esc

Type to search.

Reference previewOpen reference