drogon
C++14/17-based HTTP application framework
Loading...
Searching...
No Matches
drogon::CallbackAwaiter< T > Struct Template Reference

#include <drogon/utils/coroutine.h>

Inheritance diagram for drogon::CallbackAwaiter< T >:
Collaboration diagram for drogon::CallbackAwaiter< T >:

Public Member Functions

bool await_ready () noexcept
bool hasException () const noexcept
const T & await_resume () const noexcept(false)

Protected Member Functions

void setException (const std::exception_ptr &e)
void setValue (const T &v)
void setValue (T &&v)

Detailed Description

template<typename T = void>
struct drogon::CallbackAwaiter< T >

Helper class that provides the infrastructure for turning callback into coroutines


The documentation for this struct was generated from the following file: