xports a function which uses exponential backoff to retry a throttled asynchronous function multiple times.
- Source:
Examples
const retry = require('./retry');
(await retry(() => myThrottledFunction()))();
(await retry(() => {
myThrottledFunction()
})
)();
(require("retry"))() → {Promise}
- Source:
Exports the retry function.
Returns:
- Type
- Promise