Configuration Options
| Option | Type | Default | Description |
|---|---|---|---|
attempts | number | 3 | Maximum number of attempts (including the initial one). |
delay | number | 1000 | Initial wait time before retrying. |
backoffFactor | number | 1 | Multiplier for exponential backoff. |
shouldRetry | function | () => true | Function deciding whether a retry should occur based on the error. |
onRetry | function | undefined | Callback executed after each failed attempt. |