|
|
| task (handle_type coroutine) noexcept |
| |
|
| task (task const &)=delete |
| |
|
task & | operator= (task const &)=delete |
| |
|
| task (task &&other) noexcept |
| |
|
task & | operator= (task &&other) noexcept |
| |
| bool | started () const noexcept |
| | Check if the co-routine was started.
|
| |
| bool | running () const noexcept |
| | Check if the co-routine is running.
|
| |
| bool | done () const noexcept |
| | Check if the co-routine has completed.
|
| |
| void | value () const |
| | Get the return value returned from co_return.
|
| |
| template<forward_of< void()> Func> |
| callback< void()> | subscribe (Func &&func, callback_flags flags=callback_flags::synchronous) noexcept |
| |
| auto | operator co_await () const noexcept |
| | Create an awaiter that can await on this task.
|
| |
template<bool DestroyFrame>
class v1::task< void, DestroyFrame >
- See also
- task<>