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

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

#include <hikogui/concepts.hpp>

Concept definition

template<typename T>
concept v1::awaitable_direct = requires(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 concepts.hpp:134

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().