|
Uni20
Asynchronous tensor and runtime library.
|
Forwarding awaiter that transfers one task ownership claim to an awaitable. More...
#include <async_task_promise.hpp>
Public Member Functions | |
| bool | await_ready () |
| Checks whether the wrapped awaitable is ready. | |
| decltype(auto) | await_resume () |
| Resume wrapped awaitable and register explicit exception sinks if provided. | |
| template<TaskPromise Promise> | |
| auto | await_suspend (std::coroutine_handle< Promise > handle) |
| Suspend using promise-neutral ownership-transfer semantics. | |
Public Attributes | |
| A | awaitable |
| TaskPromiseBase & | promise |
Forwarding awaiter that transfers one task ownership claim to an awaitable.
Forward an awaitable using promise-neutral task ownership.
|
inline |
Checks whether the wrapped awaitable is ready.
true when no suspension is needed.
|
inline |
Resume wrapped awaitable and register explicit exception sinks if provided.
|
inline |
Suspend using promise-neutral ownership-transfer semantics.
| Promise | Concrete enclosing promise type. |
| handle | Current coroutine handle. |
| A uni20::async::TaskAwaiter< A >::awaitable |
| TaskPromiseBase& uni20::async::TaskAwaiter< A >::promise |