retry-promise
Small utility function to automatically retry bluebird Promises.
Install
npm install --save retry-promise
Usage
retry(opts, promise)
opts.max
max number of retries (default: 10
)
opts.backoff
time in ms between retries (default: 1000
)
Time between retries is actually attempt_number * backoff. Every retry waits longer.
Example
var retry = ; ;