(error)
| 1491 | }) |
| 1492 | }, |
| 1493 | onFailure(error) { |
| 1494 | if (isTooManyRequestsHttpClientError(error)) { |
| 1495 | return Effect.flatMap( |
| 1496 | inspectResponse(error.reason.response, adaptive), |
| 1497 | (retryAfter) => canRetry ? retry(retryAfter) : Effect.fail(error) |
| 1498 | ) |
| 1499 | } |
| 1500 | return Effect.fail(error) |
| 1501 | } |
| 1502 | }) |
| 1503 | return adaptive === undefined || Duration.isZero(adaptive.delay) |
| 1504 | ? request |
nothing calls this directly
no test coverage detected