Infrastructure · Primitives
Cooldown
Mandatory delay between repeated actions
Definition
Mechanism
Minimum Interval Enforcement: After action A, enforce minimum delay D before A can repeat. Attempts during cooldown rejected or queued. Cooldown timer starts on action completion. Different actions can have different cooldowns. It acts as the enforcement mechanism for Throttle policies, rejecting requests until the timer expires.
Preconditions
- Action executed
- Rate limit policy
Postconditions
- Ready state restored after delay
Invariants
- Action blocked until T_last + Duration
- Timer is monotonic
Risks
Failure modes
Deadlock
Critical action needed during cooldown period, system stuck waiting.
Relationships
Builds on
References
Rate-limiting to prevent resource exhaustion
Used by
Composes with
Society
Atomic coordination via temporary state fusion
Reference
Parameters
durationDuration, [1s, 1h]- Mandatory wait period
reset_triggerEnum, {Success, Failure, Any}- What resets the cooldown
