# libtmux::Connection::take_notifications

- **Module:** libtmux::Connection
- **Package:** libtmux-cxx
- **Language:** C++
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-cxx/blob/393d4b0ad666f18a6581f1eb281741a75a7503f0/include/libtmux/control.hpp#L250
- **Page:** https://libtmux.org/en/cxx/latest/reference/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.
