redis-smq-common
Version:
Provides essential components and utilities shared across RedisSMQ packages.
11 lines • 412 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.LogarithmicBackoff = void 0;
const backoff_js_1 = require("./backoff.js");
class LogarithmicBackoff extends backoff_js_1.Backoff {
getNextDelay(baseDelay, attempts) {
return baseDelay * Math.log2(attempts + 2);
}
}
exports.LogarithmicBackoff = LogarithmicBackoff;
//# sourceMappingURL=logarithmic-backoff.js.map