|
Uni20
Asynchronous tensor and runtime library.
|
Non-owning erased identity for one Uni20 coroutine frame. More...
#include <async_task.hpp>
Public Member Functions | |
| constexpr std::coroutine_handle | coroutine () const noexcept |
| TaskDomain | domain () const noexcept |
| Return the execution domain declared by the concrete promise. | |
| bool | done () const noexcept |
| constexpr | operator bool () const noexcept |
| TaskPromiseBase & | promise () const noexcept |
| constexpr | TaskHandle () noexcept=default |
Static Public Member Functions | |
| template<TaskPromise Promise> | |
| static TaskHandle | from (std::coroutine_handle< Promise > handle) noexcept |
Friends | |
| constexpr bool | operator== (TaskHandle lhs, TaskHandle rhs) noexcept |
| class | TaskPromiseBase |
Non-owning erased identity for one Uni20 coroutine frame.
The coroutine pointer, promise pointer, and concrete-promise domain are always captured together from the original typed coroutine handle. A TaskHandle does not add or release an ownership claim and never destroys a frame automatically.
|
constexprdefaultnoexcept |
|
inlineconstexprnoexcept |
|
inlinenoexcept |
Return the execution domain declared by the concrete promise.
|
inlinenoexcept |
|
staticnoexcept |
|
inlineexplicitconstexprnoexcept |
|
inlinenoexcept |
|
friend |
|
friend |