A lazily started coroutine that transfers directly to its single awaiter at completion.
More...
#include "donner/base/tasks/Task.h"
|
|
| Task (const Task &)=delete |
|
Task & | operator= (const Task &)=delete |
|
| Task (Task &&other) noexcept |
|
Task & | operator= (Task &&other) noexcept |
|
Awaiter | operator co_await () const noexcept |
|
|
class | detail::TaskPromise< T > |
template<typename T>
class donner::tasks::Task< T >
A lazily started coroutine that transfers directly to its single awaiter at completion.
A coroutine returning this type takes a TaskScheduler& as its first explicit parameter. Keep the owner alive through the await and the allocating scheduler alive until the owner releases the frame, including after a completed await. Destroying an unstarted task releases it without executing its body. Moving a task transfers ownership of its frame. The caller serializes operations on the owner itself.
- Template Parameters
-
| T | The result value or void. |
The documentation for this class was generated from the following file: