|
MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
|
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_handle & | await_resume () const noexcept |
Public Attributes | |
| promise_handle * | promise_ptr = nullptr |
| Pointer to store the promise object. | |
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.
| PromiseType | The promise type to access (audio_promise, graphics_promise, etc.) |
Definition at line 188 of file Awaiters.hpp.