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

WorkspaceBuilder.build(_:on:)

API reference · Markdown

WorkspaceBuilder.build(_:on:) ( workspace : Workspace , on : Server ) → Session
methodasyncstatic [source]
methodasyncstatic [source]
WorkspaceBuilder.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.

Discussed in Build a workspace from a file · Swift workspace internals , Swift workspace builder API

In other ports Build a session from a workspace description
Esc

Type to search.