Core LibraryAPI Reference

Choose documentation 1

latest

Current version

latest
English

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

function libtmux-fsharp latest

Control.withSession

Namespace LibTmux.FSharp.Control.withSession LibTmux.FSharp

Opens a control client, runs work, and disposes the client after the returned task completes.

View as Markdown

Source and package
Module
LibTmux.FSharp
Declared in
Control
Package
LibTmux.FSharp
Source
src/LibTmux.FSharp/Control.fsi
F# value signatures Declares the name and type of a value or function in a signature. Language documentation withSession: cancellationToken: CancellationToken -> work: (IControlModeSession -> Task<'State>) -> server: LibTmux.Server -> Task<'State>
function [source]

Description#

The cancellation token starts the client; the work function forwards its own token. Like <c>enter</c>, the client attaches to the most recently used session; for a chosen one, pass <c>enterSession</c>'s client to <c>useSession</c>.

Parameters

Discussed in Commands and control mode · Execution modes , Quick start , Streams and cleanup

Esc

Type to search.