Task specialization for void.
More...
#include <coroutine_utils.h>
|
| | Task (handle_type h) |
| | Constructor with handle.
|
| | Task (Task &&other) noexcept |
| | Constructor with other Task.
|
| Task & | operator= (Task &&other) noexcept |
| | Operator= for Task.
|
|
| Task (const Task &)=delete |
|
Task & | operator= (const Task &)=delete |
| bool | await_ready () const noexcept |
| | Await ready for Task.
|
| void | await_suspend (std::coroutine_handle<> awaiting) |
| | Await suspend for Task.
|
|
void | await_resume () |
| | Await resume for Task.
|
|
void | get_sync () |
| | Get the result of the Task synchronously.
|
| bool | valid () const noexcept |
| | Valid for Task.
|
Task specialization for void.
◆ Task() [1/2]
Constructor with handle.
- Parameters
-
◆ Task() [2/2]
Constructor with other Task.
- Parameters
-
| other | The other Task to use |
◆ await_ready()
Await ready for Task.
- Returns
- Whether the Task is ready
◆ await_suspend()
| void agents::Task< void >::await_suspend |
( |
std::coroutine_handle<> | awaiting | ) |
|
|
inline |
Await suspend for Task.
- Parameters
-
| awaiting | The awaiting coroutine handle |
◆ operator=()
| Task & agents::Task< void >::operator= |
( |
Task< void > && | other | ) |
|
|
inlinenoexcept |
Operator= for Task.
- Parameters
-
| other | The other Task to use |
- Returns
- The Task
◆ valid()
Valid for Task.
- Returns
- Whether the Task is valid