WaitOptions.cancelled
Whether the caller has given up.
Source and package
- Qualified name
-
libtmux::Wait Options:: cancelled - Namespace
- libtmux
- Declared in
WaitOptions- Package
- libtmux-cxx
- Source
- include/libtmux/wait.hpp
- cancelled : std::
function <bool()> -
Description#
Polled rather than a
std::stop_tokenbecause the loop already wakes onpoll_intervaland most callers have a flag rather than a token; a token adapts in one line —[stop] { return stop.stop_requested(); }— while the reverse would cost the caller a thread. A cancelled wait answersFailureKind::cancelled.