Struct open_coroutine::coroutine::Yielder
source · pub struct Yielder<'a, Param, Yield, Return> { /* private fields */ }
Implementations§
source§impl<'a, Param, Yield, Return> Yielder<'a, Param, Yield, Return>
impl<'a, Param, Yield, Return> Yielder<'a, Param, Yield, Return>
sourcepub extern "C" fn suspend(&self, val: Yield) -> Param
pub extern "C" fn suspend(&self, val: Yield) -> Param
Suspends the execution of a currently running coroutine.
This function will switch control back to the original caller of
Coroutine::resume
. This function will then return once the
Coroutine::resume
function is called again.