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.

method libtmux-go latest

ControlClient.NextNotification

NextNotification returns the next ordered control-mode notification. Concurrent calls are serialized, as for PaneObservation.NextNotification: each notification goes to exactly one call, in order, and a call waiting its turn returns when ctx ends.

Source and package
Qualified name
tmux.ControlClient.NextNotification
Package
tmux
Declared in
ControlClient
Distribution
github.com/libtmux/libtmux-go/tmux
Source
tmux/control_stream.go

Description#

Every end of the client matches ErrControlClosed. Close releases the queue and makes subsequent reads report an error matching both ErrControlClosed and os.ErrClosed. Natural process exit before a caller asked to close instead reports an error matching both ErrControlClosed and 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, which does not match ErrControlClosed: the process is still running, and the caller decides to close it.

Parameters
Esc

Type to search.

Reference previewOpen reference