|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
Event-domain promise accessor with optional NetworkSource ownership transfer. More...
#include <GetPromise.hpp>
Inheritance diagram for MayaFlux::Kriya::GetEventPromise:
Collaboration diagram for MayaFlux::Kriya::GetEventPromise:Public Member Functions | |
| Vruta::event_promise & | await_resume () const noexcept |
| GetEventPromise (std::shared_ptr< Vruta::NetworkSource > source=nullptr) | |
Public Member Functions inherited from MayaFlux::Kriya::GetPromiseBase< Vruta::event_promise > | |
| bool | await_ready () const noexcept |
| promise_handle & | await_resume () const noexcept |
| void | await_suspend (std::coroutine_handle< promise_handle > h) noexcept |
| GetPromiseBase ()=default | |
Private Attributes | |
| std::shared_ptr< Vruta::NetworkSource > | m_source |
Additional Inherited Members | |
Public Types inherited from MayaFlux::Kriya::GetPromiseBase< Vruta::event_promise > | |
| using | promise_handle = Vruta::event_promise |
Public Attributes inherited from MayaFlux::Kriya::GetPromiseBase< Vruta::event_promise > | |
| promise_handle * | promise_ptr |
| Pointer to store the promise object. | |
Event-domain promise accessor with optional NetworkSource ownership transfer.
Extends GetPromiseBase for the event domain. When constructed with a NetworkSource, deposits it into the promise's owned_sources on await_resume, binding the source lifetime to the coroutine frame.
Users familiar with coroutine mechanics are expected to use this as the designated entry point for resource ownership in Event coroutines.
Definition at line 111 of file GetPromise.hpp.