tokio
1.44.2
In tokio::
task::
coop
Modules
consume_budget
unconstrained
Structs
Budget
BudgetDecrement
Coop
RestoreOnPending
Unconstrained
Functions
budget
consume_budget
cooperative
has_budget_remaining
inc_budget_forced_yield_count
poll_budget_available
poll_proceed
register_waker
set
stop
unconstrained
with_budget
with_unconstrained
tokio
::
task
::
coop
Function
with_budget
Copy item path
Settings
Help
Summary
Source
fn with_budget<R>(budget:
Budget
, f: impl
FnOnce
() -> R) -> R