Libtmux_unix.Workspace
- module Workspace
-
Public owner:
Libtmux_unixApply validated plans with blocking I/O and scoped cancellation tokens. Execution handles retain journals and borrow existing clients; bootstrap handles own their newly bound clients without owning the daemon.
Guides#
Pages that discuss Workspace.
Members7#
Common operations3#
- await function Apply steps at most once per execution handle. Expected failures return retained receipts. On initial application,
compensate_on_failuredefaults totrue, attempting removal of proven newly created panes after failure or cancellation. Passingfalseskips that compensation. Cancellation propagates after recording progress and at most 500 ms of protected compensation; useinspectafterward. - client function Borrow the existing or bootstrapped
Client.twithout I/O for subsequent actions or recovery.closereleases a client owned by this workspace execution handle. - submit_bootstrap function Allocate a handle for a missing-endpoint plan. Awaiting it starts control new-session and binds the same connection. The handle owns its new client; it never acquires ownership of the daemon.
Other members4#
- close function Release an owned client through
Client.close. Active await returns Busy. Completed journals remain readable after close. - inspect function Copy the retained
Libtmux_workspace.Execution.receiptwithout I/O, on the owning domain, including after execution or client closure. Pending steps can settle as the client progresses; earlier receipts keep their own step and cleanup arrays. - submit function Allocate a generation-bound execution handle without I/O. The caller owns the supplied client; closing this handle leaves that client open.
- t typealias