NotificationStream.Next
Next returns the next ordered control-mode notification. Concurrent calls are serialized: each notification goes to exactly one call, and a call waiting its turn returns when ctx ends.
Source and package
- Qualified name
-
tmux.Notification Stream. Next - Package
- tmux
- Declared in
NotificationStream- Distribution
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/notification_stream.go
- func (s *Notification
Stream ) Next( ctx context.Context , ) (ControlNotification , error) -
Description#
A stream that has ended reports why: see
NotificationStreamfor the errors to match. A caller that wants to treat every end alike writes errors.Is(err,ErrControlClosed).- Parameters