(retryAfter: Duration.Duration | undefined)
| 1427 | const current = getState(key) |
| 1428 | const canRetry = options.times === undefined || retries < options.times |
| 1429 | function retry(retryAfter: Duration.Duration | undefined) { |
| 1430 | return retryAfter |
| 1431 | ? Effect.flatMap(Effect.sleep(retryAfter), () => loop(effect, request, retries + 1)) |
| 1432 | : loop(effect, request, retries + 1) |
| 1433 | } |
| 1434 | const inspectResponse = ( |
| 1435 | response: HttpClientResponse.HttpClientResponse, |
| 1436 | adaptive: RateLimiter.AdaptiveConsumeResult | undefined |
no test coverage detected