Implementation of task::promise_t for void return type.
More...
Implementation of task::promise_t for void return type.
◆ await_transform()
Function called whenever co_await is used inside of the task.
- Exceptions
-
- Returns
- proxy_awaiter Returns a proxy awaiter that will check for cancellation on resumption
◆ final_suspend()
Function called by the standard library when the coroutine reaches its last suspension point.
- Returns
- final_awaiter Special object containing the chain resolution and clean-up logic.
◆ get_return_object()
Function called by the standard library when the coroutine is created.
- Returns
- task The coroutine object
◆ initial_suspend()
Function called by the standard library when the coroutine is created.
- Returns
- std::suspend_never Don't suspend, the coroutine starts immediately.
◆ return_void()
Function called by the standard library when the coroutine co_returns.
Does nothing but is required by the standard library.
◆ unhandled_exception()
Function called by the standard library when an exception is thrown and not caught in the coroutine.
Stores the exception pointer to rethrow on co_await. If the task object is destroyed and was not cancelled, throw instead
◆ final_awaiter< void >
◆ cancelled
Whether the task is cancelled or not.