Function yield_now

Source
pub async fn yield_now()
Expand description

Returns a future that becomes ready after one poll, emulating a yield on most async runtimes.