(retryAfter: Duration.Duration | undefined)
| 1152 | const current = getState(key) |
| 1153 | const canRetry = options.times === undefined || retries < options.times |
| 1154 | function retry(retryAfter: Duration.Duration | undefined) { |
| 1155 | return retryAfter |
| 1156 | ? Effect.flatMap(Effect.sleep(retryAfter), () => loop(effect, request, retries + 1)) |
| 1157 | : loop(effect, request, retries + 1) |
| 1158 | } |
| 1159 | const inspectResponse = ( |
| 1160 | response: HttpClientResponse.HttpClientResponse, |
| 1161 | adaptive: RateLimiter.AdaptiveConsumeResult | undefined |