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

tmux.ControlClient.NextNotification

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
ControlClient
Package
github.com/libtmux/libtmux-go/tmux
Source
tmux/control_stream.go
NextNotification ( ctx : context.Context ) → (ControlNotification, error)
method [source]
method [source]
NextNotification

NextNotification returns the next ordered control-mode notification. Exactly one caller may execute it at a time. Close releases the queue and makes subsequent reads report os.ErrClosed, drained through queued notifications first. Natural process exit before a caller asked to close instead reports ErrControlStreamLost - most often because the server the underlying tmux client was attached to exited - naming the tmux exit reason when one was sent. A terminal reader error follows notifications queued before that failure. A full bounded queue likewise drains before reporting ControlNotificationOverflowError .

0 declared, 0 inherited

Esc

Type to search.