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. with Session - 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. withSession: cancellationToken : CancellationToken -> work: (IControlMode -> Task<'State>) -> server: LibSession Tmux -> Task<'State>.Server -
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, passenterSession's client touseSession.- Parameters
-
-
work((IControlMode -> Task<'State>))Session
Recorded calls
source callsThe 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 materialPages that discuss withSession.
- Concepts