@creejs/commons-retrier
Version:
Common Utils About Task Retrying
14 lines (13 loc) • 520 B
TypeScript
/**
* @class FixedBackoff
*/
export default class FixedBackoff extends FixedInterval {
/**
* Creates a fixed backoff policy with optional jitter.
* @param {number} fixedInterval - The fixed interval between retries in milliseconds.
* @param {number} [jitter=500] - The maximum random jitter to add to the interval in milliseconds.
*/
constructor(fixedInterval: number, jitter?: number);
}
export { FixedBackoff as FixedBackoffType };
import FixedInterval from './fixed-interval-policy.js';