MCPcopy Create free account
hub / github.com/David-Haim/concurrencpp / await

Function await

include/concurrencpp/threads/async_condition_variable.h:68–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66
67 template<class predicate_type>
68 lazy_result<void> await(std::shared_ptr<executor> resume_executor, scoped_async_lock& lock, predicate_type pred) {
69 static_assert(
70 std::is_invocable_r_v<bool, predicate_type>,
71 "concurrencpp::async_condition_variable::await - given predicate isn't invocable with no arguments, or does not return a type which is or convertible to bool.");
72
73 verify_await_params(resume_executor, lock);
74 return await_impl(std::move(resume_executor), lock, pred);
75 }
76
77 void notify_one();
78 void notify_all();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected