tmux.ControlClient.NextNotification
Go
- Python Unavailable
- Ruby Unavailable
- Lua Unavailable
- TypeScript Unavailable
- Rust Unavailable
- Go
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
- Module
- tmux
- Declared in
- ControlClient
- Package
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/control_stream.go
- NextNotification ( ctx : context.Context ) (ControlNotification, error)
-
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 reportingControlNotificationOverflowError.
0 declared, 0 inherited