|
Corium 1.1.0
High-Performance Zero-Heap C++20 MPSC Application Runtime
|
Lightweight C++20 coroutine task with zero-heap resumption chaining and configurable frame allocator. More...
#include <Task.hpp>
Collaboration diagram for corium::async::Task< T, Allocator >:Classes | |
| struct | promise_type |
Public Types | |
| using | AllocatorType = Allocator |
| using | ValueType = T |
Public Member Functions | |
| bool | await_ready () const noexcept |
| Awaiter interface for co_await chaining. | |
| T | await_resume () |
| std::coroutine_handle | await_suspend (std::coroutine_handle<> awaiting) noexcept |
| bool | done () const noexcept |
| Check if coroutine has completed execution. | |
| std::coroutine_handle< promise_type > | handle () const noexcept |
| Access raw coroutine handle. | |
| Task & | operator= (const Task &)=delete |
| Task & | operator= (Task &&other) noexcept |
| void | resume () |
| Resume the coroutine explicitly. | |
| constexpr | Task () noexcept=default |
| Task (const Task &)=delete | |
| Task (std::coroutine_handle< promise_type > handle) noexcept | |
| Task (Task &&other) noexcept | |
| ~Task () | |
Lightweight C++20 coroutine task with zero-heap resumption chaining and configurable frame allocator.
| T | Result type returned by the coroutine (defaults to void). |
| Allocator | Frame allocation policy (HeapFrameAllocator default or StaticFrameAllocator). |
| using corium::async::Task< T, Allocator >::AllocatorType = Allocator |
| using corium::async::Task< T, Allocator >::ValueType = T |
|
constexprdefaultnoexcept |
Here is the caller graph for this function:
|
inlineexplicitnoexcept |
|
inline |
|
delete |
|
inlinenoexcept |
|
inlinenoexcept |
Awaiter interface for co_await chaining.
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
Check if coroutine has completed execution.
|
inlinenoexcept |
Access raw coroutine handle.
|
delete |
|
inlinenoexcept |
|
inline |
Resume the coroutine explicitly.