Corium 1.1.0
High-Performance Zero-Heap C++20 MPSC Application Runtime
Loading...
Searching...
No Matches
Task.hpp File Reference

Lazy awaitable C++20 coroutine task with zero dynamic heap allocation. More...

#include <coroutine>
#include <exception>
#include <utility>
#include "corium/async/FramePool.hpp"
+ Include dependency graph for Task.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  corium::async::Task< T, Allocator >::promise_type
 
struct  corium::async::Task< void, Allocator >::promise_type
 
class  corium::async::Task< T, Allocator >
 Lightweight C++20 coroutine task with zero-heap resumption chaining and configurable frame allocator. More...
 
class  corium::async::Task< void, Allocator >
 Specialization of Task for void return type with configurable frame allocator. More...
 

Namespaces

namespace  corium
 
namespace  corium::async
 

Typedefs

template<typename T = void, std::size_t MaxFrames = 16, std::size_t FrameSize = 256>
using corium::async::PooledTask = Task< T, StaticFrameAllocator< MaxFrames, FrameSize > >
 Pre-configured zero-heap statically-pooled coroutine task.
 

Detailed Description

Lazy awaitable C++20 coroutine task with zero dynamic heap allocation.