Core Library0.xAPI reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

method libtmux-dotnet

Server.GetAttachedSessionsAsync

Reads every session with at least one attached client.

Source and package
Qualified name
LibTmux.Server.GetAttachedSessionsAsync
Namespace
LibTmux
Declared in
Server
Package
LibTmux
Source
src/LibTmux/Server.Collections.cs
async Task<IReadOnlyList<Session>> GetAttachedSessionsAsync( CancellationToken cancellationToken = default )

Description

A handle that has not found a live server yet discovers one first. The control client this library keeps on the server is not counted as attached.

Parameters
Returns

The attached sessions reported by a successful read.

Errors

Recorded calls

source calls
No call edges in the C# model.

The 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.GetAttachedSessionsAsync.

tmux command

task material

The tmux commands behind GetAttachedSessionsAsync.

tmux C API

task material

The C declarations in tmux that implement these commands.

In other ports

task equivalence 3 other ports mapped

Source-verified mappings for List the sessions a client is attached to. A mapping says these APIs perform the same task. It does not say they share defaults, errors or completion: check each page.

List the sessions a client is attached to in each port
PortAPIDiffers from C#
C# LibTmux.Server.GetAttachedSessionsAsync
Reads every session with at least one attached client.
This page
Python libtmux.Server.attached_sessions
Return active Session instances.
None recorded in the model
Rust server.Server.attached_sessions
List the sessions that have at least one client attached.
None recorded in the model
Java io.github.libtmux.Server.attachedSessions
Captures every session a client is attached to.
None recorded in the model
No Haskell equivalent.

No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.

No TypeScript equivalent.

no equivalent on Server

No Go equivalent.

no equivalent on Server

No C++ equivalent.

no equivalent on Server

No Swift equivalent.

no equivalent on Server

No OCaml equivalent.

No direct public OCaml equivalent is recorded for this operation.

No Perl equivalent.

No dedicated equivalent in the selected Perl surface. Explicit Server::cmd remains available for native tmux commands.

No Raku equivalent.

No direct Raku mapping is recorded for this operation; consult the native API reference.

No equivalent is recorded in Ruby, Lua, PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.

Esc
Search in

Type to search.

Reference previewOpen reference