Function hyper::common::task::yield_now

source ·
pub(crate) fn yield_now(cx: &mut Context<'_>) -> Poll<Infallible>
Expand description

A function to help “yield” a future, such that it is re-scheduled immediately.

Useful for spin counts, so a future doesn’t hog too much time.