Skip to main content
Pigweed's logo Pigweed
code_xml
  1. Home
  2. Reference
  3. C/C++
  4. pw_async2
  5. Coroutines
  6. pw::async2::CoroContext Class 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 CoroContext & operator= (const CoroContext &)=default
 

Friends

class Dispatcher
 
class internal::CoroPromiseBase
 

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.

Supports implicit conversion to simplify creating coroutines.


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