Server.CreateSessionWithReceiptAsync
Creates a session and returns its initial window and pane identities.
Source and package
- Qualified name
-
LibTmux .Server. Create Session With Receipt Async - Namespace
- LibTmux
- Declared in
Server- Package
- LibTmux
- Source
- src/LibTmux/Server.Lifecycle.cs
- async Task<Session
Creation > CreateSessionWithReceiptAsync( NewResult Session ? request = null, CancellationRequest Token cancellationToken = default ) -
Description
The returned session is bound to the creating daemon. Its child identifiers are creation-time facts, not a snapshot or a promise that the children still belong to the session. A failed readback publishes no receipt or cleanup ownership.
- Parameters
-
-
request(NewSession ?) – The session to create.Request Default
null -
cancellationToken(CancellationToken ) – Cancels creation and readback.Default
default
-
- Returns
-
The created session and child identifiers from the same creation reply.
- Errors
-
-
Argument
Exception – The name is invalid, or generation-bound creation requests replacement. -
Tmux
Session – The name is already taken.Exists Exception -
Lib
Tmux – Creation or readback failed; a failure after creation has unknown dispatch outcome.Exception
-
Recorded calls
source callsThe C# reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls LibTmux.Server.CreateSessionWithReceiptAsync.
tmux command
task materialThe tmux commands behind CreateSessionWithReceiptAsync.
tmux C API
task materialThe C declarations in tmux that implement these commands.
Each path starts at a function a command runs, which is degree 1. The degree counts steps from there along the path, and each step is a call or a reference: degree 2 is reached from that function, degree 3 from the next, and so on.
Create a session and its first pane
- 1
cmd_new_session_exec - calls → 2
spawn_window - calls → 3
spawn_pane - calls → 4
window_add_pane - calls → 5
window_pane_create