retry-promised
A package to support retrying promises that allows deep inspection of the error to decide whether to retry or not.
Usage
const retryPromised = ; const options = maxAttempts: 5 // defaults to 10 retryTimeout: 1000 // Time in milliseconds (defaults to zero) timeoutMultiplier: 2 // allows exponential back-off (defaults to 1) err && errcode == "TooManyRequests" // defaults to () => true; ;