![]() |
D++ (DPP)
C++ Discord API Bot Library
|
Proxy awaitable that wraps any co_await inside the task and checks for cancellation on resumption. More...
#include <task.h>
Collaboration diagram for dpp::detail::task::promise_base::proxy_awaiter< A >:Public Member Functions | |
| bool | await_ready () noexcept(noexcept(awaitable.await_ready())) |
| Wrapper for the awaitable's await_ready. More... | |
| template<typename T > | |
| decltype(auto) | await_suspend (T &&handle) noexcept(noexcept(awaitable.await_suspend(std::forward< T >(handle)))) |
| Wrapper for the awaitable's await_suspend. More... | |
| decltype(auto) | await_resume () |
| Wrapper for the awaitable's await_resume, throws if the task is cancelled. More... | |
Public Attributes | |
| const task::promise_base & | promise |
| The promise_t object bound to this proxy. More... | |
| A | awaitable |
| The inner awaitable being awaited. More... | |
Proxy awaitable that wraps any co_await inside the task and checks for cancellation on resumption.
|
inlinenoexcept |
Wrapper for the awaitable's await_ready.
|
inline |
Wrapper for the awaitable's await_resume, throws if the task is cancelled.
| dpp::task_cancelled_exception | If the task was cancelled |
|
inlinenoexcept |
Wrapper for the awaitable's await_suspend.
| A dpp::detail::task::promise_base::proxy_awaiter< A >::awaitable |
The inner awaitable being awaited.
| const task::promise_base& dpp::detail::task::promise_base::proxy_awaiter< A >::promise |
The promise_t object bound to this proxy.