| D++ (DPP) C++ Discord API Bot Library

Search
Loading...
Searching...
No Matches
dpp::awaitable_type Concept Reference

Concept to check if a type can be used with co_await. More...

`#include <coro.h>`

## Concept definition

template<typename T>
concept dpp::awaitable_type = requires (T expr) { detail::co_await_resolve(expr).await_ready(); }
dpp::awaitable_type
Concept to check if a type can be used with co_await.
Definition coro/coro.h:174
dpp::detail::co_await_resolve
decltype(auto) co_await_resolve(auto &&expr)
Mimics the compiler's behavior of using co_await. That is, it returns whichever works first,...
Definition coro/coro.h:158

## Detailed Description

Concept to check if a type can be used with co_await.

D++ Library version 9.0.13 D++ Library version 9.0.12 D++ Library version 9.0.11 D++ Library version 9.0.10 D++ Library version 9.0.9 D++ Library version 9.0.8 D++ Library version 9.0.7 D++ Library version 9.0.6 D++ Library version 9.0.5 D++ Library version 9.0.4 D++ Library version 9.0.3 D++ Library version 9.0.2 D++ Library version 9.0.1 D++ Library version 9.0.0 D++ Library version 1.0.2 D++ Library version 1.0.1 D++ Library version 1.0.0