A budget for a ResourceWalker that uses a BudgetUsageType to track the usage of the budget.

Type Parameters

BudgetUsageType

The type of the budget usage.

EstimatedBudgetUsageType

The type of the estimated budget usage.

Functions

Link copied to clipboard
abstract suspend fun integrate(usage: BudgetUsageType)

Integrate a given usage into the budget

Link copied to clipboard
abstract suspend fun mayExecute(expectedUsage: EstimatedBudgetUsageType): Boolean

Check if a given budget should still be executed