Core LibraryAPI Reference

Choose documentation 3

latest

Current version

latest
English

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

C# API

method libtmux-dotnet latest

Server.HasSessionAsync

Namespace LibTmux.Server.HasSessionAsync LibTmux

Reports whether a session exists.

View as Markdown

Source and package
Module
LibTmux
Declared in
Server
Package
LibTmux
Source
src/LibTmux/Server.Lifecycle.cs
Other languages
Python Ruby Lua TypeScriptRustGoJava C++ Swift Kotlin Scala F#
HasSessionAsync ( target : string , exact : bool , cancellationToken : CancellationToken ) → Task<bool>
methodasync [source]
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.

tmux command has-session

Discussed in Querying and filtering

In other ports Whether a session with this name exists
Esc

Type to search.