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

Overview

The promise_type of Coro<T>. This is an internal implementation detail, and not part of the public pw_async2 API.

To understand this type, reference C++20 coroutine API documentation.

Inheritance diagram for pw::async2::internal::CoroPromiseBase:
pw::async2::internal::TypedCoroPromise< T, CoroPromise< T > > pw::async2::internal::TypedCoroPromise< void, CoroPromise< void > > pw::async2::internal::TypedCoroPromise< T, Derived > pw::async2::internal::CoroPromise< T > pw::async2::internal::CoroPromise< void >

Public Member Functions

std::suspend_always initial_suspend ()
 
std::suspend_always final_suspend () noexcept
 
void unhandled_exception ()
 
CoroPollState AdvanceAwaitable (Context &cx)
 
Deallocatordeallocator () const
 
template<typename AwaitableType >
void SuspendAwaitable (AwaitableType &awaitable)
 

Static Public Member Functions

template<typename... Args>
static void * operator new (std::size_t size, CoroContext coro_cx, const Args &...) noexcept
 
template<typename... Args>
static void * operator new (std::size_t size, std::align_val_t align, CoroContext coro_cx, const Args &...) noexcept
 
template<typename MethodReceiver , typename... Args>
static void * operator new (std::size_t size, const MethodReceiver &, CoroContext coro_cx, const Args &...) noexcept
 
template<typename MethodReceiver , typename... Args>
static void * operator new (std::size_t size, std::align_val_t align, const MethodReceiver &, CoroContext coro_cx, const Args &...) noexcept
 
static void operator delete (void *)
 

Protected Member Functions

 CoroPromiseBase (CoroContext cx)
 

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