type alias CircuitState
Since 0.1.0

Circuit breaker states.

  • closed — calls flow normally; failures are counted
  • open — calls fail fast without invoking the target
  • half-open — a trial call probes whether the target recovered

Definition

"closed" | "open" | "half-open"

Usage

import { type CircuitState } from "common/src/index.ts";