Class Task
Defined in File exathread.hpp
Inheritance Relationships
Derived Types
public exathread::ValueTask< T >
(Template Class ValueTask)public exathread::VoidTask
(Class VoidTask)
Class Documentation
-
class Task
Base coroutine handle management class.
Warning
Do not interface with this class directly; it is documented but is not meant for general use
Subclassed by exathread::ValueTask< T >, exathread::VoidTask
Public Functions
-
Task(const Task &other) noexcept
Copy construction.
-
inline Task(Task &&other) noexcept
Move construction.
-
inline bool done() const noexcept
Check if a task has completed execution.
- Returns:
Completion state
-
inline details::Promise &promise() noexcept
Access the underlying promise.
- Returns:
The promise data
-
Task(const Task &other) noexcept