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

◆ final_suspend()

template<typename RoutineType >
CompletionAwaiter 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 97 of file Promise.hpp.

97{ return { this }; }