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.

method libtmux-dotnet latest

ServerMirror.OpenAsync

Namespace LibTmux.ServerMirror.OpenAsync LibTmux

Mirrors the server an anchor session belongs to.

View as Markdown

Source and package
Module
LibTmux
Declared in
ServerMirror
Package
LibTmux
Source
src/LibTmux/Snapshots/ServerMirror.cs
OpenAsync ( anchor : Session , refreshEvery : TimeSpan , cancellationToken : CancellationToken ) → Task<ServerMirror>
methodstaticasync [source]
Parameters
  • anchor ( Session ) – The session the mirror's control client attaches to.

  • refreshEvery ( TimeSpan ) – How long a quiet mirror waits before capturing anyway, so a change tmux does not announce is seen within that long; zero never does.

  • cancellationToken ( CancellationToken ) – Cancels attaching and the first capture.

Returns

A mirror whose first view is already captured.

Raises
Esc

Type to search.