fn
,options
Retries a function that returns a promise
fn
options
The options argument is an object which maps to the retry module options: retries: Max retries. Default is 10. factor: The exponential factor to use. Default is 2. minTimeout: The number of milliseconds before starting the first retry. Default is 1000. maxTimeout: The maximum number of milliseconds between two retries. Default is Infinity. randomize: Randomizes the timeouts by multiplying with a factor between 1 to 2. Default is false.
promiseRetry should return success on first try | Pass |
promiseRetry should not retry on fail if retry not called | Pass |
promiseRetry should not retry on rejection if retry count is set to 0 | Pass |
promiseRetry should reject the promise if max number of retries has exceeded | Pass |
promiseRetry Dont retry if promise was successful | Pass |