MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ Event() [1/3]

MayaFlux::Vruta::Event::Event ( std::coroutine_handle< promise_type h)

Constructs a Event from a coroutine handle.

Parameters
hHandle to the coroutine

Creates a Event that wraps and manages the given coroutine. This is typically called by the compiler-generated code when a coroutine function returns a Event.

Definition at line 12 of file Event.cpp.

13 : m_handle(h)
14{
15 if (!m_handle || !m_handle.address()) {
16 error<std::invalid_argument>(Journal::Component::Vruta, Journal::Context::EventDispatch, std::source_location::current(),
17 "Event: Invalid coroutine handle");
18 }
19}
uint32_t h
Definition InkPress.cpp:28
std::coroutine_handle< promise_type > m_handle
Definition Event.hpp:225
@ EventDispatch
Event dispatching and coordination.
@ Vruta
Coroutines, schedulers, clocks, task management.

References MayaFlux::Journal::EventDispatch, m_handle, and MayaFlux::Journal::Vruta.