(decision: RetryDecision, attempt: number, maxRetries: number)
| 284 | } |
| 285 | |
| 286 | function shouldStop(decision: RetryDecision, attempt: number, maxRetries: number): boolean { |
| 287 | return !decision.retry || attempt >= maxRetries; |
| 288 | } |
| 289 | |
| 290 | export interface BackoffOptions { |
| 291 | /** Total attempts (initial + retries). Default 3. */ |
no outgoing calls
no test coverage detected