# tmux.PaneObservation.NextNotification

- **Module:** tmux.PaneObservation
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-go/blob/5f808882015a975a65acc7f9da5b3ff0d5cbdc91/tmux/control_observation.go#L79
- **Page:** https://libtmux.org/reference/go/tmux-paneobservation-nextnotification/

```
tmux.PaneObservation.NextNotification(ctx: context.Context) -> (ControlNotification, error)
```

NextNotification returns the next notification strictly after the pane baseline, from the whole connection rather than this pane alone. Notifications queued before that boundary are discarded. Concurrent calls are serialized. Caller context errors and [ControlNotificationError] affect only one call. Explicit close returns an error matching [os.ErrClosed].

Topology loss, natural stream EOF, and terminal reader errors return
[ErrPaneObservationLost]. Stream failures preserve their cause. Later calls
return that loss without consuming more notifications.
