C/C++ API Reference
Loading...
Searching...
No Matches
pw::async2::CoroContext Class Reference

Overview

Context required for creating and executing coroutines.

Public Member Functions

constexpr CoroContext (Allocator &allocator)
 
constexpr CoroContext (const CoroContext &)=default
 
constexpr CoroContextoperator= (const CoroContext &)=default
 
constexpr Allocatorallocator () const
 

Constructor & Destructor Documentation

◆ CoroContext()

constexpr pw::async2::CoroContext::CoroContext ( Allocator allocator)
inlineconstexpr

Creates a CoroContext, which uses the provided allocator to allocate coroutine state. A CoroContext may be used to invoke other coroutines. Its allocator can be used for other allocations, if desired.

Supports implicit conversion to simplify creating coroutines.


The documentation for this class was generated from the following file: