![]() |
mrs_lib
Various reusable classes, functions and utilities for use in MRS projects
|
Task type for creating coroutines. More...
#include <task.hpp>
Public Types | |
| using | promise_type = internal::PromiseType< T > |
Public Member Functions | |
| Task (const Task &)=delete | |
| Task & | operator= (const Task &)=delete |
| Task (Task &&)=delete | |
| Task & | operator= (Task &&)=delete |
Friends | |
| class | internal::PromiseType< T > |
| internal::TaskAwaitable< T > | operator co_await (Task task) |
Task type for creating coroutines.
| T | Return type of the coroutine (default is void) |
Task is lazy coroutine, which means it must be co_awaited to start executing.