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

Operation.await/2

Waits for a canonical result under one positive millisecond timeout.

Source and package
Qualified name
LibTmux.Operation.await/2
Module
LibTmux
Declared in
Operation
Package
libtmux
Source
lib/libtmux/operation.ex
await(operation, options \\ []) @spec await(t(), [option()]) :: {:ok, result()} | {:error, LibTmux.Error.t()}

Description

The default is 5000ms. Every call claims an independent bounded waiter slot, including terminal operations; use result/1 for immediate inspection. Completed waiter copies survive record reclamation until this caller reads them. Timeout, overload and caller death affect only this waiter.

See the worked example.

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.Operation.await/2.

Guides

task material

Pages that discuss await/2.

Esc
Search in

Type to search.

Reference previewOpen reference