ServerConnectionOptions.CommandTimeout
Gets how long one tmux command may run, or null to wait indefinitely.
Source and package
- Qualified name
-
LibTmux .Server Connection Options. Command Timeout - Namespace
- LibTmux
- Declared in
ServerConnectionOptions- Package
- LibTmux
- Source
- src/LibTmux/Connection/TmuxConnectionOptions.cs
-
Description
A tmux that stops answering otherwise hangs the caller until its own cancellation token fires, and forever if it passed none. On expiry the command throws
TmuxTransportExceptionwhoseDispatchisTmuxDispatchState.Unknown: tmux may already have acted. A caller's own cancellation still wins, and reads as cancellation. Connecting is bounded by it too: reading the version and the server's generation are tmux commands like any other. Await-forthat waits for a signal or a lock is not: it waits for another client by design.