Core Library0.xAPI reference

Choose documentation 3

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

enum libtmux-dotnet

TmuxDispatchState

Says whether a failed command reached tmux, which is what decides if retrying is safe.

Source and package
Qualified name
LibTmux.TmuxDispatchState
Namespace
LibTmux
Package
LibTmux
Source
src/LibTmux/Exceptions/TmuxDispatchState.cs
enum LibTmux.TmuxDispatchState

Description

Retrying is safe only when the command never reached tmux. TmuxDispatchState.Unknown is the default because assuming otherwise repeats a side effect tmux already ran.

Members3 members

  • Dispatched tmux ran the command and answered. The failure is tmux refusing or reporting an error, not the command going missing, so any side effect it had before failing has already happened.
  • NotDispatched The command never reached tmux, so nothing was done and a retry repeats nothing. This is the only state in which retrying is unconditionally safe.
  • Unknown Whether tmux acted on the command cannot be determined. Treat a retry as capable of repeating whatever the command does.

Guides

task material

Pages that discuss TmuxDispatchState.

Esc
Search in

Type to search.

Reference previewOpen reference