# libtmux::Connection::take_notifications

- **Module:** libtmux::Connection
- **Package:** libtmux-cxx
- **Language:** C++
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-cxx/blob/85e8bd603a322dc32bb8b9aeb1a72bcf36945f1d/include/libtmux/control.hpp#L231
- **Page:** https://libtmux.org/reference/cxx/libtmux-connection-take_notifications/

```
libtmux::Connection::take_notifications() -> std::vector< Notification >
```

Every outside-block event tmux has written since the last call.

Taking drains: what comes back will not come back again. It says nothing about what happens next, so an empty result does not mean the stream has gone quiet, and a later one is new traffic rather than a repeat. Wait for the next event with `wait_for_notifications` rather than polling for one.
