MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::Kriya::GetPromiseBase< PromiseType > Struct Template Reference

Templated awaitable for accessing a coroutine's promise object. More...

#include <Awaiters.hpp>

+ Collaboration diagram for MayaFlux::Kriya::GetPromiseBase< PromiseType >:

Public Types

using promise_handle = PromiseType
 

Public Member Functions

 GetPromiseBase ()=default
 
bool await_ready () const noexcept
 
void await_suspend (std::coroutine_handle< promise_handle > h) noexcept
 
promise_handleawait_resume () const noexcept
 

Public Attributes

promise_handlepromise_ptr = nullptr
 Pointer to store the promise object.
 

Detailed Description

template<typename PromiseType>
struct MayaFlux::Kriya::GetPromiseBase< PromiseType >

Templated awaitable for accessing a coroutine's promise object.

This template allows coroutines to access their own promise object in a type-safe, domain-agnostic way. Each domain (audio, graphics, complex, event) can instantiate this template with their specific promise type.

Template Parameters
PromiseTypeThe promise type to access (audio_promise, graphics_promise, etc.)

Definition at line 188 of file Awaiters.hpp.


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