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

◆ force_resume()

bool MayaFlux::Vruta::CrossRoutine::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 530 of file Routine.cpp.

531{
532 if (!m_handle || m_handle.done()) {
533 return false;
534 }
535 m_handle.resume();
536 return true;
537}
std::coroutine_handle< promise_type > m_handle
Definition Routine.hpp:726

References m_handle.