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

Check if the type can be co_awaited on after conversion with awaitable_cast. More...

#include <hikogui/awaitable.hpp>

Concept definition

template<typename T>
concept awaitable = not std::is_same_v<awaitable_cast_t<T>, void>
Check if the type can be co_awaited on after conversion with awaitable_cast.
Definition awaitable.hpp:119

Detailed Description

Check if the type can be co_awaited on after conversion with awaitable_cast.

The type needs to do one of the following:

  • Has the following functions: await_ready(), await_suspend() and await_resume().
  • Has a member function operator co_await().
  • Has a non-member function operator co_await().
  • Has a template specialization of hi::awaitable_cast.