Core Library0.xAPI reference

Choose documentation 1

pr-173

Current version

pr-173
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

function libtmux-elixir

Control.execute/3

Executes one qualified request, returning its result after wire retirement and record reclamation. Repeated successful calls need no manual forget.

Source and package
Qualified name
LibTmux.Control.execute/3
Module
LibTmux
Declared in
Control
Package
libtmux
Source
lib/libtmux/control.ex

Description

The default 5000ms budget covers preparation, admission, execution and collection. Failed, skipped and unknown canonical outcomes remain values; acknowledgement does not establish external program completion.

Pre-admission errors have no-write certainty. An error after admission is a LibTmux.Control.ExecutionError with the exact Operation and retained or lost context. Inspect that handle when available; never replay on timeout. The original caller owns recovery: its death permits reclamation after wire retirement, even if it passed the handle to another process. A live caller's timeout leaves the record subject to normal retention and explicit forget. Operation.status/1 and Operation.result/1 inspect it without a waiter. A new await needs its own slot; the expired collector releases its slot asynchronously when the owner processes closure. Use submit/3 when a retained handle is required after successful waiting.

alias LibTmux.Control

Control.execute(control, LibTmux.Control.Request.field("pid"))

Parameters

Recorded calls

source calls
No call edges in the Elixir model.

The Elixir 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.Control.execute/3.

Guides

task material

Pages that discuss execute/3.

Esc
Search in

Type to search.

Reference previewOpen reference