Core LibraryalphaAPI 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-cxx latest

ExecutionPolicy

What a call waits and holds when the caller did not say.

Source and package
Qualified name
libtmux::ExecutionPolicy
Namespace
libtmux
Package
libtmux-cxx
Source
include/libtmux/command.hpp
struct libtmux::ExecutionPolicy

Description#

A timeout on the call is still how a caller says "this one in particular": listing sessions does not share a deadline with attaching a client. What was missing was a floor. Typed methods passed no timeout at all, so window.rename(...) waited for as long as the process ran if tmux never answered — and "tmux is normally fast" is not a liveness guarantee when a hook blocks, a filesystem stops answering, or a connection breaks without closing the pipe.

Thirty seconds is far past every tmux command that works and far short of forever. wait_for opts out, because waiting is the whole request.

Members3#

Esc

Type to search.

Reference previewOpen reference