MayaFlux 0.1.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 10 of file Event.cpp.

11 : m_handle(h)
12{
13 if (!m_handle || !m_handle.address()) {
14 throw std::invalid_argument("Invalid coroutine handle");
15 }
16}
std::coroutine_handle< promise_type > m_handle
Definition Event.hpp:225

References m_handle.