Uni20
Asynchronous tensor and runtime library.
Loading...
Searching...
No Matches
uni20::async::TaskFactoryChildAwaitable Concept Reference

Awaitable that can hold one ownership claim in a multi-input join. More...

#include <async_task_promise.hpp>

Concept definition

template<typename T>
concept uni20::async::TaskFactoryChildAwaitable = requires(T a, BasicTask task) {
{ a.await_suspend(std::move(task)) } noexcept -> std::same_as<void>;
}
Awaitable that can hold one ownership claim in a multi-input join.
Definition async_task_promise.hpp:71

Detailed Description

Awaitable that can hold one ownership claim in a multi-input join.

A join child must retain or release the supplied parent task. It cannot request nested task transfer because the parent has other outstanding ownership claims in the same join. Registration must not throw after accepting its ownership claim.