Task specialization for void.
More...
#include <coroutine_utils.h>
|
using | handle_type = std::coroutine_handle<promise_type> |
| Handle type for Task.
|
|
using | handle_type |
| Handle type for Task.
|
|
Task specialization for void.
◆ Task() [1/4]
Constructor with handle.
- Parameters
-
◆ Task() [2/4]
Constructor with other Task.
- Parameters
-
other | The other Task to use |
◆ Task() [3/4]
Constructor with handle.
- Parameters
-
◆ Task() [4/4]
Constructor with other Task.
- Parameters
-
other | The other Task to use |
◆ await_ready() [1/2]
Await ready for Task.
- Returns
- Whether the Task is ready
◆ await_ready() [2/2]
Await ready for Task.
- Returns
- Whether the Task is ready
◆ await_resume()
Await resume for Task.
- Returns
- The awaited result if
T
is not void
.
◆ await_suspend() [1/2]
void agents::Task< void >::await_suspend |
( |
std::coroutine_handle<> | awaiting | ) |
|
|
inline |
Await suspend for Task.
- Parameters
-
awaiting | The awaiting coroutine handle |
◆ await_suspend() [2/2]
void agents::Task< void >::await_suspend |
( |
std::coroutine_handle<> | awaiting | ) |
|
|
inline |
Await suspend for Task.
- Parameters
-
awaiting | The awaiting coroutine handle |
◆ get_sync()
Synchronously wait and get the value (used by blockingWait)
- Returns
- The result of the Task
◆ operator=() [1/2]
Operator= for Task.
- Parameters
-
other | The other Task to use |
- Returns
- The Task
◆ operator=() [2/2]
Operator= for Task.
- Parameters
-
other | The other Task to use |
- Returns
- The Task
◆ valid()
Valid for Task.
- Returns
- Whether the Task is valid