Forwarding awaiter that transfers shared task ownership through a TaskFactory.
More...
#include <async_task_promise.hpp>
|
| bool | await_ready () |
| | Checks whether the wrapped awaitable is ready.
|
| |
| decltype(auto) | await_resume () |
| | Resume wrapped awaitable and return its await result.
|
| |
| template<TaskPromise Promise> |
| void | await_suspend (std::coroutine_handle< Promise > handle) |
| | Suspend using shared-ownership await-suspend semantics.
|
| |
template<TaskFactoryAwaitable A>
struct uni20::async::TaskFactoryAwaiter< A >
Forwarding awaiter that transfers shared task ownership through a TaskFactory.
◆ await_ready()
template<TaskFactoryAwaitable A>
Checks whether the wrapped awaitable is ready.
- Returns
true when no suspension is needed.
◆ await_resume()
template<TaskFactoryAwaitable A>
Resume wrapped awaitable and return its await result.
- Returns
- Result produced by the wrapped awaitable.
◆ await_suspend()
template<TaskFactoryAwaitable A>
template<TaskPromise Promise>
Suspend using shared-ownership await-suspend semantics.
- Template Parameters
-
| Promise | Concrete enclosing promise type. |
- Parameters
-
| handle | Current coroutine handle. |
◆ awaitable
template<TaskFactoryAwaitable A>
◆ promise
template<TaskFactoryAwaitable A>
The documentation for this struct was generated from the following file: