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.
pub fn cooperative<F: Future>(future: F) -> Cooperative<F> ⓘRuns future under the budget: each of its polls spends one operation,
and it yields instead of being polled when the budget is spent.