yield_current_unsafe

Function yield_current_unsafe 

Source
pub unsafe fn yield_current_unsafe() -> Result<(), CoroutineError>
Expand description

Yield the current coroutine (unsafe version for advanced use)

§Safety

This must be called from within a coroutine context

§Errors

Returns CoroutineError if yielding fails or if not called from within a coroutine