|
tin
1.5.9
|
#include <coroutine.h>

Classes | |
| struct | promise_type |
Public Types | |
| using | handle_type = std::coroutine_handle< promise_type > |
Public Member Functions | |
| task ()=default | |
| task (handle_type handle) noexcept | |
| task (task const &)=delete | |
| task & | operator= (task const &)=delete |
| task (task &&other) noexcept | |
| task & | operator= (task &&other) noexcept |
| ~task () | |
| operator bool () const noexcept | |
| bool | done () const noexcept |
| handle_type | handle () const noexcept |
| bool | resume () |
Move-only handle for a statically allocated coroutine task.
A task is the runtime-owned handle for one coroutine frame. It separates coroutine lifetime and resumption from the application code that wrote the coroutine body. Executors store task objects in fixed slots and resume them only when their task_context reports that the task is ready.
| using tsm::task::handle_type = std::coroutine_handle<promise_type> |
|
default |
|
inlineexplicitnoexcept |
|
delete |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlineexplicitnoexcept |
|
inline |