exponential-backoff
exponential-backoff copied to clipboard
A utility that allows retrying a function with an exponential delay between attempts.
in the fullJitter function, a random number is used to calculate the delay, which is multiplied by prevDelay*e^attemptNumber. But Math.random() can return 0, and then the total delay before repeating...
Stop generating the source map when compiling the project, the `src/` folder isn't published to NPM, so the source map was pointing to non-existing files. These source maps were causing...
Removes [tough-cookie](https://github.com/salesforce/tough-cookie). It's no longer used after updating ancestor dependencies [tough-cookie](https://github.com/salesforce/tough-cookie), [jest](https://github.com/facebook/jest/tree/HEAD/packages/jest) and [ts-jest](https://github.com/kulshekhar/ts-jest). These dependencies need to be updated together. Removes `tough-cookie` Updates `jest` from 24.9.0 to 29.6.1 Release...
The readme displayed code that can't compile because `BackoffOptions` was written as `BackOffOptions` but `BackOffOptions` does not exist.
When jitter is used the max retry is not infinite
There is no way to control the backOff while it is resting/sleeping state. Let's say I have a timeout that ran out - backOff will still run after that. If...
This makes the developer experience a bit nicer: the IDE will display the documentation inline for each of the options and the backOff function itself. The values in the comments...
when numOfAttempts should set to any number it will work only 4 times. Set value as 1 or anything and check
- In my application, I needed to optionally add `AbortSignal` to terminate retry logic. - This PR implements the ability to pass an `AbortSignal` to the retry logic. This will...