UNPKG

redis-smq-common

Version:

Provides essential components and utilities shared across RedisSMQ packages.

11 lines 413 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PolynomialBackoff = void 0; const backoff_js_1 = require("./backoff.js"); class PolynomialBackoff extends backoff_js_1.Backoff { getNextDelay(baseDelay, attempts) { return baseDelay * Math.pow(attempts + 1, 1 / 3); } } exports.PolynomialBackoff = PolynomialBackoff; //# sourceMappingURL=polynomial-backoff.js.map