retry

xports a function which uses exponential backoff to retry a throttled asynchronous function multiple times.

Source:
Examples
const retry = require('./retry');

one line

(await retry(() => myThrottledFunction()))();

multi-line

(await retry(() => {
   myThrottledFunction()
 })
)();

(require("retry"))() → {Promise}

Source:

Exports the retry function.

Returns:
Type
Promise