Circuit breaker protecting calls to an unreliable dependency.
readonly
state: CircuitState
The current circuit state.
execute<T>(fn: ResilientCall<T>): Promise<T>
Executes a call through the breaker.
Circuit breaker protecting calls to an unreliable dependency.
state: CircuitState
The current circuit state.
execute<T>(fn: ResilientCall<T>): Promise<T>
Executes a call through the breaker.
import { type ICircuitBreaker } from "common/src/index.ts";