UNPKG
@qelos/assets
Version:
latest (3.8.0)
3.8.0
3.7.4
3.7.3
manage assets like images and static files on remote servers
@qelos/assets
/
node_modules
/
@smithy
/
middleware-retry
/
dist-es
/
delayDecider.js
3 lines
(2 loc)
•
204 B
JavaScript
View Raw
1
2
3
import
{
MAXIMUM_RETRY_DELAY
}
from
"@smithy/util-retry"
;
export
const
defaultDelayDecider
= (
delayBase, attempts
) =>
Math
.
floor
(
Math
.
min
(
MAXIMUM_RETRY_DELAY
,
Math
.
random
() *
2
** attempts * delayBase));