dot-xx
A personal collection of small C++ modules
|
An awaitable object that allows the handler code to respond to the request at a later point in time. More...
Public Types | |
using | Response = TResponse |
Public Member Functions | |
PendingConnection (bool c_owned) | |
PendingConnection (const PendingConnection &)=delete | |
PendingConnection & | operator= (const PendingConnection &)=delete |
PendingConnection (PendingConnection &&other) | |
PendingConnection & | operator= (PendingConnection &&other) |
bool | await_ready () const noexcept |
void | await_suspend (std::coroutine_handle<> h) |
Response & | emplace (auto &&arg) |
Response & | emplace (auto &&... args) |
void | respond () |
void | respond_with (auto &&... args) |
const std::optional< Response > & | await_resume () const |
void | own (auto &&coro_task) |
Take ownership of a coroutine handle from the task. | |
constexpr auto | operator<=> (const PendingConnection &other) |
An awaitable object that allows the handler code to respond to the request at a later point in time.
TResponse | response data type |
|
inline |
Take ownership of a coroutine handle from the task.
This is horrible API