@ende/async/unstable-circuit-breaker

ende add jsr:@ende/async

Version 2026.10.15 on JSR.

Exports

  • CircuitBreaker — A circuit breaker that wraps async operations to prevent cascading failures.
  • CircuitBreakerExecuteOptions — Options for CircuitBreaker.execute.
  • CircuitBreakerOpenError — Error thrown when CircuitBreaker is open and rejects a request.
  • CircuitBreakerOptions — Options for CircuitBreaker.
  • CircuitState — 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