expb.js:指数退避

时间:2021-06-16 15:33:31
【文件属性】:
文件名称:expb.js:指数退避
文件大小:3KB
文件格式:ZIP
更新时间:2021-06-16 15:33:31
JavaScript expb.js 在 2^n ms 持续时间内超时的指数退避。 用法: 导入包后,您可以使用以下不同类型的函数: 封顶 function capped(maxTries, producer, callback); Here the default error checker is by checking if the statusCode is in the OK range ie >= 200 && <= 299 function cappedCustom(maxTries, errChecker, producer, callback); Just like the capped version but you can provide a custom errChecker function cappedNet(maxTries, producer, callback); He
【文件预览】:
expb.js-master
----.gitignore(19B)
----README.md(2KB)
----LICENSE(1KB)
----package.json(670B)
----lib()
--------expb.js(3KB)

网友评论