Retry handler while it throws. Retries are based on the provided options which can define how many retries, delays between retries, and whether retries should continue based on the error.
handler
options
The function to retry. It should return a value or a promise that resolves to a value.
The configuration options for retrying.
The result of the handler after it successfully completes.
Throws the last error encountered if retries are exhausted or if aborted.
Retry
handlerwhile it throws. Retries are based on the providedoptionswhich can define how many retries, delays between retries, and whether retries should continue based on the error.