Function tokio::runtime::coop::cooperative

source ·
pub(crate) fn cooperative<F: Future>(fut: F) -> Coop<F> 
Expand description

Run a future with a budget constraint for cooperative scheduling. If the future exceeds its budget while being polled, control is yielded back to the runtime.