{
 "library": "bootstrap",
 "version": "0.11.0",
 "root": "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5",
 "license": null,
 "slug": "Cooldown",
 "ref": "Cooldown#c288",
 "hash": "sema:Cooldown#mh:SHA-256:c288d88055cb0aae80c4b67ed62afcd3ebcc5de18749fc6efb15e9f8c529b9df",
 "stub": "c288",
 "layer": "Infrastructure",
 "type": "Primitives",
 "summary": "Mandatory delay between repeated actions",
 "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#dd62 policies, rejecting requests until the timer expires.",
 "invariants": [
  "Action blocked until T_last + Duration",
  "Timer is monotonic"
 ],
 "parameters": [
  {
   "name": "duration",
   "type": "Duration",
   "range": "[1s, 1h]",
   "description": "Mandatory wait period"
  },
  {
   "name": "reset_trigger",
   "type": "Enum",
   "range": "{Success, Failure, Any}",
   "description": "What resets the cooldown"
  }
 ],
 "signature": [],
 "preconditions": [
  "Action executed",
  "Rate limit policy"
 ],
 "postconditions": [
  "Ready state restored after delay"
 ],
 "failure_modes": [
  "Deadlock: Critical action needed during cooldown period, system stuck waiting."
 ],
 "domain": "",
 "caution": "",
 "sources": [],
 "name": "Cooldown",
 "builds_on": [
  {
   "alias": "throttle",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Throttle",
   "ref": "Throttle#dd62",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Throttle"
  }
 ],
 "related": [],
 "used_by": [
  {
   "slug": "StateLock",
   "relation": "composes_with",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/StateLock"
  }
 ],
 "url": "https://semahash.org/vocabularies/bootstrap/patterns/Cooldown",
 "md_url": "https://semahash.org/vocabularies/bootstrap/patterns/Cooldown.md",
 "library_url": "https://semahash.org/vocabularies/bootstrap"
}
