Core LibraryAPI Reference

Choose documentation 3

latest

Current version

latest
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

function LibTmux.jl latest

open_control

Module LibTmux.open_control LibTmux
Source and package
Module
LibTmux
Package
LibTmux
Source
src/control.jl

Methods#

open_control(f, server::LibTmux.Server, session::LibTmux.SessionRef; kwargs...)[source]#

open_control( server::LibTmux.Server, session::LibTmux.SessionRef; timeout, cancel, capacity )[source]#

Open two owned control clients on the borrowed session: a request lane and a cleanup lane for library-owned waits. Both independently verify the captured generation over their own connection. The two attachments are observable; configured attach/detach hooks and unattached-session/server policies apply.

open_control(server, session::SessionRef; timeout=5.0, cancel=nothing, capacity=64)

Capacity includes minted signals until cleanup. close stops admission, signals submitted owned waits, waits for their fences, then joins both client processes and all I/O/cleanup tasks. A dead/unresponsive backend can prevent proving remote retirement; local cleanup remains bounded and effects are reported by ControlCleanupError ; ControlSignal.cleanup_done remains false without its primary completion fence. No borrowed wait channel is signalled. The do-block form preserves body and cleanup failures in CompositeException . capacity must be positive, fit Int , and cannot be Bool ; invalid capacity fails before attaching a client.

Discussed in Cancel a control wait · Ownership and I/O

Esc

Type to search.

Reference preview Open reference