Function yield_now

Source
pub fn yield_now() -> impl Future<Output = ()>
Expand description

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