Skip to main content

Module budget

Module budget 

Source
Expand description

Cooperative CPU budget for tick-based systems.

Systems receive a TickBudget via [SystemContext::budget()] that tracks elapsed time against a configured limit. Budget-aware systems check is_expired() and yield early when time runs out. Systems that ignore the budget run to completion — enforcement is cooperative, not preemptive.

Structs§

TickBudget
A cooperative CPU budget for one system invocation.