libtmux Reference MCP Search
On this page

LibTmux.Server.HasSessionAsync

View as Markdown

Module
LibTmux
Declared in
Server
Package
LibTmux
Source
src/LibTmux/Server.Lifecycle.cs
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.

0 declared, 0 inherited

Esc

Type to search.