Snapshot.sessions/1
Returns a materialized session selection without I/O.
Source and package
- Qualified name
-
LibTmux .Snapshot. sessions/1 - Module
- LibTmux
- Declared in
Snapshot- Package
- libtmux
- Source
- lib/libtmux/snapshot.ex
- sessions(snapshot) @spec sessions(t()) :: Lib
Tmux (Lib.Selection .t Tmux ()).Session .t -
Description
See the worked example.
Recorded calls
source callsThe Elixir 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.Snapshot.sessions/1.
Guides
task materialPages that discuss sessions/1.
In other ports
task equivalence 21 other ports mappedSource-verified mappings for List the server’s sessions. 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 Elixir |
|---|---|---|
| Elixir | Lib Returns a materialized session selection without I/O. | This page |
| Python | libtmux Sessions contained in server. | None recorded in the model |
| Ruby | Lib Behavior: Live acquisition. | on Server |
| Lua | libtmux | None recorded in the model |
| PowerShell | Lib Read sessions with optional exact selectors. | free function |
| Julia | Lib | free function |
| Erlang | tmux Return captured sessions in numeric ID order. Performs no I/O and raises incomplete_snapshot when that collection was not captured. | free function Returns captured rows without tmux I/O. |
| Common Lisp | libtmux: Return a fresh vector of physical sessions in captured wire order. No I/O. | free function2 overloads sessions returns a fresh vector from a captured snapshot without contacting tmux. |
| TypeScript | server Every session on the server, read now. | asyncon Server |
| Rust | server List every session on the server, preserving any failure. | asyncon Server |
| Go | tmux Sessions materializes the server's sessions. Failures, including ErrNoServer, remain errors rather than empty results. | on Server |
| Java | io The sessions this expression matches, captured now. | on Server2 overloads |
| Clojure | libtmux Acquires captured sessions; acquisition failure throws. | free function Acquires a new captured graph and returns its session maps; acquisition failure throws. |
| Kotlin | io Every session, captured now. | asyncon Server2 overloads |
| Scala | io The sessions this expression matches, captured now. | on Server2 overloads |
| C# | Lib Gets the sessions this handle captured. | None recorded in the model |
| F# | Lib Queries every session. | free function Builds a deferred session query on LibTmux.Server. Query.list acquires the results; it does not traverse the handle’s captured membership. |
| C++ | libtmux:: One snapshot each. | on Serverreadonly |
| Swift | Server Every session on this server, in tmux's own order. | asyncon Server |
| OCaml | Libtmux | free function Reads an immutable array of already captured sessions without I/O. |
| Perl | Lib Return a fresh LibTmux::SessionSelection in captured order. Empty loaded collections yield empty selections; unloaded collections throw. | Reads captured membership locally, preserving order. |
| Raku | Lib Captured sessions in acquisition order; reading performs no I/O. | None recorded in the model |
No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.