Connection.take_notifications
Every outside-block event tmux has written since the last call.
Source and package
- Qualified name
-
libtmux::Connection:: take _notifications - Namespace
- libtmux
- Declared in
Connection- Package
- libtmux-cxx
- Source
- include/libtmux/control.hpp
- [[
C++ nodiscard attributeAsks the compiler to warn when a result is discarded. An explicit cast to void acknowledges that the result is intentionally ignored.]] std::vector <Notification> take_notifications(); -
Description#
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.