![]() |
D++ (DPP)
C++ Discord API Bot Library
|
Struct returned by a coroutine's final_suspend, resumes the continuation. More...
#include <coroutine.h>
Collaboration diagram for dpp::detail::coroutine::promise_t< void >:Public Member Functions | |
| final_awaiter< void > | final_suspend () const noexcept |
| Function called by the standard library when reaching the end of a coroutine. | |
| dpp::coroutine< void > | get_return_object () |
| Function called to get the coroutine object. | |
| std_coroutine::suspend_always | initial_suspend () const noexcept |
| Function called by the standard library when the coroutine start. | |
| void | return_void () const noexcept |
| Function called when co_return is used. | |
| void | unhandled_exception () noexcept |
| Function called when an exception escapes the coroutine. | |
Public Attributes | |
| std::exception_ptr | exception {nullptr} |
| Pointer to an uncaught exception thrown by the coroutine. | |
| std_coroutine::coroutine_handle | parent {nullptr} |
| Handle of the coroutine co_await-ing this coroutine. | |
Struct returned by a coroutine's final_suspend, resumes the continuation.
|
inlinenoexcept |
Function called by the standard library when reaching the end of a coroutine.
|
inline |
Function called to get the coroutine object.
|
inlinenoexcept |
Function called by the standard library when the coroutine start.
|
inlinenoexcept |
Function called when co_return is used.
|
inlinenoexcept |
Function called when an exception escapes the coroutine.
Stores the exception to throw to the co_await-er
| std::exception_ptr dpp::detail::coroutine::promise_t< void >::exception {nullptr} |
Pointer to an uncaught exception thrown by the coroutine.
| std_coroutine::coroutine_handle dpp::detail::coroutine::promise_t< void >::parent {nullptr} |
Handle of the coroutine co_await-ing this coroutine.