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

◆ final_suspend()

template<typename RoutineType >
std::suspend_always MayaFlux::Vruta::routine_promise< RoutineType >::final_suspend ( )
inlinenoexcept

Determines whether the coroutine suspends before destruction.

Returns
A suspend always awaitable, meaning the coroutine suspends before completing

By returning std::suspend_always, this method ensures that the coroutine frame isn't destroyed immediately when the coroutine completes. This gives the scheduler a chance to observe the completion and perform cleanup.

Definition at line 58 of file Promise.hpp.

58{ return {}; }