Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

LibTmux.Server.HasSessionAsync

.NET

View as Markdown

Module
LibTmux
Declared in
Server
Package
LibTmux
Source
src/LibTmux/Server.Lifecycle.cs
Other languages
Python Ruby Lua TypeScriptRustGoJava C++ Swift
HasSessionAsync ( target : string , exact : bool , cancellationToken : CancellationToken ) → Task<bool>
methodasync [source]
methodasync [source]
HasSessionAsync

Reports whether a session exists.

Parameters
  • target ( string ) – The session to look for.

  • exact ( bool ) – Whether the name must match in full.

  • cancellationToken ( CancellationToken ) – Cancels the tmux command.

Returns

True when tmux reports the session.

Discussed in Attaching to tmux

In other ports Whether a session with this name exists

0 declared, 0 inherited

Esc

Type to search.