tokio::task::coop

Function with_budget

Source
fn with_budget<R>(budget: Budget, f: impl FnOnce() -> R) -> R