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

◆ fire_on_complete()

void MayaFlux::Kriya::EventChain::fire_on_complete ( )
private

Internal method to safely fire the on_complete callback.

Definition at line 142 of file Chain.cpp.

143{
145 m_on_complete_fired = true;
146 try {
148 } catch (const std::exception& e) {
152 "Exception in EventChain on_complete: {}", e.what());
153 } catch (...) {
157 "Unknown exception in EventChain on_complete");
158 }
159 }
160}
#define MF_RT_ERROR(comp, ctx,...)
std::function< void()> m_on_complete
Optional callback to execute when the chain completes.
Definition Chain.hpp:202
bool m_on_complete_fired
Flag to ensure on_complete is only fired once.
Definition Chain.hpp:212
@ CoroutineScheduling
Coroutine scheduling and temporal coordination (Vruta::TaskScheduler)
@ Kriya
Automatable tasks and fluent scheduling api for Nodes and Buffers.

References MayaFlux::Journal::CoroutineScheduling, MayaFlux::Journal::Kriya, m_on_complete, m_on_complete_fired, and MF_RT_ERROR.

Referenced by cancel().

+ Here is the caller graph for this function: