Core LibraryalphaAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

attribute libtmux-cxx latest

WaitOptions.cancelled

Whether the caller has given up.

Source and package
Qualified name
libtmux::WaitOptions::cancelled
Namespace
libtmux
Declared in
WaitOptions
Package
libtmux-cxx
Source
include/libtmux/wait.hpp

Description#

Polled rather than a std::stop_token because the loop already wakes on poll_interval and 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 answers FailureKind::cancelled.

Esc

Type to search.

Reference previewOpen reference