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.

MoreLess about this notice

method libtmux-dotnet

Session.HoldWaitClientAsync

Keeps the control client that waits on this session's panes use attached until the handle is disposed.

Source and package
Qualified name
LibTmux.Session.HoldWaitClientAsync
Namespace
LibTmux
Declared in
Session
Package
LibTmux
Source
src/LibTmux/Session.Scopes.cs

Description

A wait on a pane attaches a control client to the pane's session and reads through it, and lets it go when the wait ends unless another wait still needs it. Attaching costs about as much as a tmux process start, so holding the client saves that for each wait in a series, which then costs little more than the keys it sends.

The client ignores its size, so it leaves window sizes alone, and is excluded wherever this library tells observers from people attached. tmux itself still lists it among the session's clients while it is held, so the session counts as attached for destroy-unattached, and the client keeps reading the session's output while no wait runs. The hold is for this server process: one started again needs a new one. When control mode is unavailable the waits poll, and the handle holds nothing.

Parameters
Returns

A handle; disposing it lets the client detach once no wait needs it.

Recorded calls

source calls
No call edges in the C# model.

The C# reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls LibTmux.Session.HoldWaitClientAsync.

Esc
Search in

Type to search.

Reference previewOpen reference