// Default: start at 1, power 1.1 for (constvofbackoffGenerator()) { // v: numeric value }
By default the generator runs forever. Use either
limitAttempts or limitValue to stop it when it produces a
given quantity of values, or when the value itself reaches a threshold.
For example:
// `values` will have five values in it constvalues = [...backoffGenerator({ limitAttempts:5 })]; // Keep generating values until max is reached constvalues = [...backoffGenerator({ limitValue:1000 })];
Options:
startAt: start value
limitAttempts: cap the number of values to generate
Generates an expoential backoff series of values
By default the generator runs forever. Use either
limitAttempts
orlimitValue
to stop it when it produces a given quantity of values, or when the value itself reaches a threshold.For example:
Options: