(maxAttempts: number)
| 98 | } |
| 99 | |
| 100 | export function retryBackoffDelays(maxAttempts: number): number[] { |
| 101 | return retry.timeouts({ |
| 102 | retries: Math.max(maxAttempts - 1, 0), |
| 103 | minTimeout: RETRY_MIN_TIMEOUT_MS, |
| 104 | maxTimeout: RETRY_MAX_TIMEOUT_MS, |
| 105 | factor: RETRY_FACTOR, |
| 106 | randomize: true, |
| 107 | }); |
| 108 | } |
| 109 | |
| 110 | export async function sleepForRetry(delayMs: number, signal: AbortSignal): Promise<void> { |
| 111 | signal.throwIfAborted(); |
no outgoing calls
no test coverage detected