Expand description

A threadsafe (Send + Sync), asynchronous budgeting implementation that is runtime agnostic.

The only difference between this module and the singlethreaded module is that this one uses std::sync::Arc and std::sync::Mutex instead of std::rc::Rc and std::cell::RefCell.

Structs

Executes a future with a given budget when awaited.

A budget-limited asynchronous context.

A future that was budgeted using Context::run_with_budget() that has not yet completed.

A future that waits for additional budget to be allocated through ReplenishableBudget::replenish().

Enums

The progress of a future’s execution.