Skip to content

Commit

Permalink
Fix signature of RetryHandler (#3416)
Browse files Browse the repository at this point in the history
(cherry picked from commit 5335013)
  • Loading branch information
JbIPS authored and github-actions[bot] committed Sep 12, 2024
1 parent 8d28413 commit 40876ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/api/RetryHandler.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Extends: [`Dispatch.DispatchOptions`](Dispatcher.md#parameter-dispatchoptions).

#### `RetryOptions`

- **retry** `(err: Error, context: RetryContext, callback: (err?: Error | null) => void) => void` (optional) - Function to be called after every retry. It should pass error if no more retries should be performed.
- **retry** `(err: Error, context: RetryContext, callback: (err?: Error | null) => void) => number | null` (optional) - Function to be called after every retry. It should pass error if no more retries should be performed.
- **maxRetries** `number` (optional) - Maximum number of retries. Default: `5`
- **maxTimeout** `number` (optional) - Maximum number of milliseconds to wait before retrying. Default: `30000` (30 seconds)
- **minTimeout** `number` (optional) - Minimum number of milliseconds to wait before retrying. Default: `500` (half a second)
Expand Down

0 comments on commit 40876ae

Please sign in to comment.