The promise-returning function to be retried.
The number of retry attempts. Must be a positive integer.
Optional
options: RetryOptionsOptional settings for retry behavior.
A promise that resolves to a tuple containing either an error or a value, and the duration in milliseconds.
Retries a promise-returning function a specified number of times with an optional delay between attempts if it fails.
Example