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

◆ await_suspend()

void MayaFlux::Kriya::ConditionAwaiter::await_suspend ( std::coroutine_handle< Vruta::conditional_promise handle)
inline

Arm the promise with the condition and the coroutine handle.

Parameters
handleHandle to the suspended FreeRoutine coroutine frame.

Requires that the coroutine type is FreeRoutine; the promise cast is asserted at compile time via the typed handle overload.

Definition at line 55 of file ConditionAwaiter.hpp.

56 {
57 auto& p = handle.promise();
58 p.condition = std::move(m_condition);
59 p.armed.store(true, std::memory_order_release);
60 }

References m_condition.