Optional
maxThe maximum number of retries to attempt after the initial operation fails. Default is 1 retry.
Optional
onCallback function that will be invoked on each retry attempt. Receives the error that caused the retry and the number of retries remaining.
The error that caused the operation to fail
The number of retries remaining
Options for configuring retry behavior.