method libtmux-kotlin latest
Server.session
The one session this expression matches, captured now.
Source and package
- Module
- io.github.libtmux.kotlin
- Declared in
- Server
- Package
- io.github.libtmux:libtmux-kotlin
- Source
- libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Server.kt
- public Kotlin suspending functions Allows a function to call suspending operations and pause without blocking a thread. It does not start a coroutine by itself. Language documentation fun session(expression: Filter
Expr <JavaSession >): Sessionpublic Kotlin suspending functions Allows a function to call suspending operations and pause without blocking a thread. It does not start a coroutine by itself. Language documentation fun Server.session(name: String): Session?public Kotlin suspending functions Allows a function to call suspending operations and pause without blocking a thread. It does not start a coroutine by itself. Language documentation fun Server.session(id: SessionId ): Session? -
- Parameters
-
-
expression ( Filter
Expr <JavaSession > ) (forsession(expression)) -
name ( String ) (for
session(name)) -
id ( Session
Id ) (forsession(id))
-
- Raises
-
-
Cardinality
Exception – if nothing matched (for.No Match session(expression)) -
Cardinality
Exception – if more than one session matched (for.Multiple Matches session(expression))
-
Discussed in Getting started