MCPcopy Create free account
hub / github.com/Effect-TS/effect / circuitBreakerFailure

Function circuitBreakerFailure

packages/effect/src/http/HttpClient.ts:1776–1779  ·  view source on GitHub ↗
(retryAfter: Duration.Duration | undefined)

Source from the content-addressed store, hash-verified

1774}
1775
1776const circuitBreakerFailure = (retryAfter: Duration.Duration | undefined): CircuitBreaker.Outcome => ({
1777 _tag: "Failure",
1778 retryAfter
1779})
1780
1781const circuitBreakerErrorOutcome = (error: unknown): CircuitBreaker.Outcome["_tag"] => {
1782 if (Cause.isTimeoutError(error)) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected