Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

tmux.Running.Wait

Go
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
tmux
Declared in
Running
Package
github.com/libtmux/libtmux-go/tmux
Source
tmux/session_run.go
Wait ( ctx : context.Context ) → (RunResult, error)
method [source]
method [source]
Wait

Wait blocks until the command exits, on tmux's own wait-for signal backed by a widening liveness check, and reports its exit status and what its terminal showed. It removes the window Start created unless RunOptions.Keep was set. A command whose process tmux never reaps has no outcome to report, and Wait ends with ErrOutcomeUnrecorded rather than the zero status that would make a failed command look successful.

Wait may be called more than once and concurrently; every call observes the same completion. The outcome is read once, as soon as any call sees the command end, on a context no caller's cancellation reaches, because from then on it belongs to every caller. A call whose context ends first reports that context and leaves the window alone; a later call gets the outcome.

0 declared, 0 inherited

Esc

Type to search.