CircuitState

import { CircuitState } from "jsr:@ende/async/unstable-circuit-breaker";

type alias ยท experimental

type CircuitState = "closed" | "open" | "half_open"

Circuit breaker states following the standard pattern.

  • "closed": Normal operation, requests pass through
  • "open": Failing, all requests rejected immediately
  • "half_open": Testing recovery, limited requests allowed

Source