Core Library0.xAPI reference

Choose documentation 1

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

function libtmux-fsharp

Control.withSession

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

Source and package
Qualified name
LibTmux.FSharp.Control.withSession
Namespace
LibTmux.FSharp
Declared in
Control
Package
LibTmux.FSharp
Source
src/LibTmux.FSharp/Control.fsi
F# value signaturesDeclares 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>

Description

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

Recorded calls

source calls
No call edges in the F# model.

The F# reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls LibTmux.FSharp.Control.withSession.

Guides

task material

Pages that discuss withSession.

Esc
Search in

Type to search.

Reference previewOpen reference