UNPKG

@creejs/commons-retrier

Version:
14 lines (13 loc) 520 B
/** * @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';