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

◆ force_resume()

bool MayaFlux::Vruta::SoundRoutine::force_resume ( )
overridevirtual

Force resume the coroutine, bypassing all checks Used only during shutdown to push coroutines to final_suspend.

Returns
True if coroutine was resumed, false if already done

Implements MayaFlux::Vruta::Routine.

Definition at line 178 of file Routine.cpp.

179{
180 if (!m_handle || m_handle.done()) {
181 return false;
182 }
183 m_handle.resume();
184 return true;
185}
std::coroutine_handle< promise_type > m_handle
Handle to the underlying coroutine.
Definition Routine.hpp:469

References m_handle.