HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
v1::awaitable Concept Reference

Check if type can be directly co_await on. More...

#include <hikogui/dispatch/awaitable.hpp>

Concept definition

template<typename T>
concept v1::awaitable = requires(std::remove_reference_t<T>& a, std::coroutine_handle<> b) {
{ a.await_ready() } -> std::convertible_to<bool>;
a.await_suspend(b);
a.await_resume();
}
Check if type can be directly co_await on.
Definition awaitable.hpp:22

Detailed Description

Check if type can be directly co_await on.

The type needs to have the following member functions: await_ready(), await_suspend() and await_resume().