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

module libtmux-fsharp

Control

Opens control clients and reads their event streams.

Source and package
Qualified name
LibTmux.FSharp.Control
Namespace
LibTmux.FSharp
Package
LibTmux.FSharp
Source
src/LibTmux.FSharp/Control.fsi

Description

Streams are cold: nothing is read until a consumer enumerates one, and the consumer supplies the cancellation token. Any IAsyncEnumerable library composes them, including FSharp.Control.TaskSeq.

Members10 members

  • withSession Opens a control client, runs work, and disposes the client after the returned task completes.
  • events Streams every event a control client reports.
  • foldWhile Folds items until the stream ends or the folder returns Stop.
  • iter Awaits one handler at a time for each item until the stream ends.
  • watchPane Streams one pane's output from a borrowed control client.
  • watchPanes Streams several panes' output from one borrowed control client.
  • cleanupFailure Returns the cleanup failure attached to the exception a helper rethrew.
  • enter Opens a control client attached to the most recently used session.
  • enterSession Opens a control client attached to a session.
  • useSession Runs work with an owned control client and disposes it after the returned task completes.
Esc
Search in

Type to search.

Reference previewOpen reference