libtmux Reference MCP Search
On this page

WorkspaceBuilder.build(_:on:)

View as Markdown

Declared in
WorkspaceBuilder
Package
libtmux-swift
Source
Sources/TmuxWorkspace/WorkspaceBuilder.swift
build(_:on:) ( workspace : Workspace , on : Server ) Session
methodasyncstatic [source]
methodasyncstatic [source]
build(_:on:)

Creates the workspace's session and returns it.

Fails rather than adopting an existing session of the same name: two callers building the same workspace should not silently share one. A failure after creation removes that exact session. If cleanup also fails, WorkspaceBuilderError/rollbackFailed(original:cleanup:) reports both errors.

0 declared, 0 inherited

Esc

Type to search.