Session.RenameAsync
Renames this session.
Source and package
- Qualified name
-
LibTmux .Session. Rename Async - Namespace
- LibTmux
- Declared in
Session- Package
- LibTmux
- Source
- src/LibTmux/Session.Lifecycle.cs
- async Task<Session> RenameAsync( string name, Cancellation
Token cancellationToken = default ) -
- Parameters
-
-
cancellationToken(CancellationToken ) – Cancels the tmux command.Default
default
- Returns
-
A replacement handle carrying the new name.
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.Session.RenameAsync.
tmux command
task materialThe tmux commands behind RenameAsync.
tmux C API
task materialThe C declarations in tmux that implement these commands.
In other ports
task equivalence 13 other ports mappedSource-verified mappings for Rename a session. 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 Renames this session. | This page |
| Python | libtmux Rename session and return new Session object. | None recorded in the model |
| Ruby | Lib Behavior: Entity mutation. | None recorded in the model |
| Lua | libtmux | None recorded in the model |
| Erlang | tmux Rename the registered session using a literal name and return the command result. Performs I/O. Previously captured records keep their old names; detached or stale references fail validation before the action. | free function |
| TypeScript | session Rename this session. | None recorded in the model |
| Rust | session Rename the session and update this handle. | None recorded in the model |
| Go | tmux Rename changes the receiver session's name and returns a canonical freshly materialized Session. If the command succeeds but refresh fails, it returns the receiver with that error. A transport or context error can be delivery-ambiguous; no rollback is attempted. Invalid names are rejected before execution and match ErrInvalidRequest. | None recorded in the model |
| Java | io Renames this session and returns its replacement capture. | None recorded in the model |
| C++ | libtmux:: | readonly |
| Swift | Server | on Server2 overloads |
| OCaml | Libtmux Set the session name, rejecting a conflicting existing name. Bound IDs remain usable; existing snapshots retain their captured names. | free function |
| Perl | Lib rename_session(session => Session|session_id, name => string). | on Server Explicit Server operation. Captured entities remain local observations; use a new snapshot to observe changes. |
| Raku | Lib Store the exact name; refuse characters or separators the daemon would change. | on SessionRef |
No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
No equivalent is recorded in PowerShell, Julia, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.