Final awaiter for a coroutine. More...
#include <corochain.hpp>
Public Member Functions | |
bool | await_ready () noexcept |
std::coroutine_handle | await_suspend (std::coroutine_handle< TPromise< T > > h) noexcept |
void | await_resume () noexcept |
Final awaiter for a coroutine.
TFinalAwaiter is used during the final suspension of a coroutine. When the coroutine completes, this awaiter ensures that the caller coroutine (whose handle is stored in the promise) is resumed. This mechanism allows proper chaining of asynchronous operations.
T | The return type of the coroutine. |