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.reconnect/2

Explicitly obtains the ready epoch, starting a replacement only after retirement.

Source and package
Qualified name
LibTmux.Control.reconnect/2
Module
LibTmux
Declared in
Control
Package
libtmux
Source
lib/libtmux/control.ex
reconnect(control, options \\ []) @spec reconnect(t(), [call_option()]) :: {:ok, t()} | {:error, LibTmux.Error.t()}

Description

A ready epoch returns itself. Call close/2 first to require replacement. The default 5000ms budget covers metadata admission, retirement and startup. A successful reply pins the acknowledged endpoint even if it becomes stale before this caller resumes. It never follows a later view or replays work. Errors report unknown certainty about existing effects. Attachment counts include the control client; reconnect can attach one replacement client.

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.Control.reconnect/2.

tmux command

task material

The tmux commands behind reconnect/2.

attach-session (the connection is closed) display-message (the connection is closed)

tmux C API

task material

The C declarations in tmux that implement these commands.

Guides

task material

Pages that discuss reconnect/2.

Esc
Search in

Type to search.

Reference previewOpen reference