Skip to main content

cooperative

Function cooperative 

Source
pub fn cooperative<F: Future>(future: F) -> Cooperative<F> ⓘ
Expand description

Runs future under the budget: each of its polls spends one operation, and it yields instead of being polled when the budget is spent.