Type alias CircuitState

CircuitState: "closed" | "open" | "half-open"

File

CircuitBreaker.ts

Description

Classic three-state circuit breaker (closed → open → half-open → closed) that wraps any async operation. When failures exceed a threshold within a window, the circuit opens and rejects calls immediately for a cooldown period.