UNPKG

whale-plus

Version:

A Component Library for Vue 3

20 lines (16 loc) 504 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function actualErrorRetryInterval(retriedCount) { if (retriedCount < 1) { return 0; } const baseTime = 1e3; const minCoefficient = 1; const maxCoefficient = 9; const coefficient = Math.floor( Math.random() * 2 ** Math.min(retriedCount, maxCoefficient) + minCoefficient ); return baseTime * coefficient; } exports.actualErrorRetryInterval = actualErrorRetryInterval; //# sourceMappingURL=utils.js.map