LibTmux.Workspace.WorkspaceBuilder.BuildAsync
- async Task<Workspace
Result > BuildAsync( WorkspaceFile workspace, CancellationToken cancellationToken = default ) -
Plans and applies a workspace with the default policies.
Description
Uses the same plan and application engine as explicit PlanAsync and ApplyAsync. Input is sent immediately, without claiming shell readiness or command completion. Use an explicit plan to review actions or select readiness, conflict, host-script and compensation policies.
- Parameters
-
-
workspace(WorkspaceFile ) – The workspace to build. -
cancellationToken(CancellationToken ) – Cancels planning or application.Default
default
-
- Returns
-
The materialized result and complete action journal.
- Errors
-
-
Workspace
Format – The workspace declaration is invalid.Exception -
Tmux
Session – The requested session already exists.Exists Exception -
Workspace
Operation – The caller canceled application; the exception carries state and action journals.Canceled Exception -
Workspace
Build – Application failed; the exception carries the action journal.Exception
-
Guides
task materialPages that discuss BuildAsync.
In other ports
task equivalence 13 other ports mappedSource-verified mappings for Build a session from a workspace description. A mapping says these APIs perform the same task. It does not say they share defaults, errors or completion: check each page.
| Port | API | Differs from C# |
|---|---|---|
| C# | Lib Plans and applies a workspace with the default policies. | This page |
| Python | tmuxp Build tmux workspace in session. | on ClassicWorkspaceBuilder |
| Ruby | Lib Behavior: Workspace apply. | on Plan |
| PowerShell | Lib Apply the exact workspace plan after one confirmation. | free function |
| Julia | Lib | free function Applies a prepared WorkspacePlan on an explicit Server, detached and under one deadline. Existing session names fail unless reuse is explicit. |
| Common Lisp | libtmux Apply WORKSPACE through explicit CLIENT and return a WORKSPACE-RESULT.
Workspace/1 retains topology-only creation/reuse. Workspace/2 freshly acquires
owned state and replans; a preview is never mutation authority. By default
owned declaration changes or drift are refused; :RECONCILE permits only the
qualified additive, rename, metadata and layout changes. It never adopts an
unowned session or repeats an uncertain mutation. RECONCILE requires schema /2. | free function |
| TypeScript | builder Build a workspace into a real tmux session, or reconcile one that exists. | free function |
| Rust | src Create the session a workspace describes, and return it. | None recorded in the model |
| Go | workspace Build creates the workspace on server and returns the created session. | free function |
| Java | io Creates the described session on a server. | None recorded in the model |
| C++ | libtmux:: | free function |
| Swift | Workspace Creates the workspace's session and returns it. | None recorded in the model |
| OCaml | Libtmux Apply steps at most once per execution handle. Expected failures return retained receipts. On initial application, compensate_on_failure defaults to true, attempting removal of proven newly created panes after failure or cancellation. Passing false skips that compensation. Cancellation propagates after recording progress and at most 500 ms of protected compensation; use inspect afterward. | free function Apply a validated Plan through submit, then await its retained execution receipt. Inspect preserves partial and late outcomes. |
| Perl | Lib load(server => $server, existing => 'error'|'skip') uses public LibTmux::Server operations. It checks all session-name conflicts before creation. error rejects any existing target with Conflict; skip leaves that entire session alone, so repeated application creates only absent sessions. A missing server permits explicit creation; other acquisition failures propagate. | on Workspace Loads through installed public core APIs; existing-target policy and known owned rollback effects are explicit. |
No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
Workspace functionality is outside the Raku core library scope.
No equivalent is recorded in Lua, Erlang, Elixir, Clojure, Kotlin, Scala or F#.