---
library: "bootstrap"
slug: "Cooldown"
name: "Cooldown"
ref: "Cooldown#c288"
hash: "sema:Cooldown#mh:SHA-256:c288d88055cb0aae80c4b67ed62afcd3ebcc5de18749fc6efb15e9f8c529b9df"
type: "Primitives"
layer: "Infrastructure"
version: "0.11.0"
root: "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5"
license: null
url: "https://semahash.org/vocabularies/bootstrap/patterns/Cooldown"
---

# Cooldown

Mandatory delay between repeated actions

Infrastructure · Primitives

## 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](https://semahash.org/vocabularies/bootstrap/patterns/Throttle.md) policies, rejecting requests until the timer expires.

## Invariants

- Action blocked until T_last + Duration
- Timer is monotonic

## Parameters

- duration: type=Duration, range=[1s, 1h], description=Mandatory wait period
- reset_trigger: type=Enum, range={Success, Failure, Any}, description=What resets the cooldown

## Preconditions

- Action executed
- Rate limit policy

## Postconditions

- Ready state restored after delay

## Failure modes

- Deadlock: Critical action needed during cooldown period, system stuck waiting.

## Where this came from

—

## Builds on

- [Throttle](https://semahash.org/vocabularies/bootstrap/patterns/Throttle.md) (references)

## Used by

- [StateLock](https://semahash.org/vocabularies/bootstrap/patterns/StateLock.md) (composes_with)

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: Cooldown#c288
- Hash: sema:Cooldown#mh:SHA-256:c288d88055cb0aae80c4b67ed62afcd3ebcc5de18749fc6efb15e9f8c529b9df

## Links

- Page: https://semahash.org/vocabularies/bootstrap/patterns/Cooldown
- JSON: https://semahash.org/vocabularies/bootstrap/patterns/Cooldown.json
- Library: https://semahash.org/vocabularies/bootstrap
- Library index: https://semahash.org/vocabularies/bootstrap/index.json
