Struct await_result

Synopsis

#include <lib/inc/drogon/utils/coroutine.h>

template <typename T>
struct await_result

Description

No description yet.

Source

Lines 56-61 in lib/inc/drogon/utils/coroutine.h.

template <typename T>
struct await_result
{
    using awaiter_t = decltype(internal::getAwaiter(std::declval<T>()));
    using type = decltype(std::declval<awaiter_t>().await_resume());
};





Add Discussion as Guest

Log in