文件名称:bluebird-harness:重试,退避,超时库以实现承诺
文件大小:6KB
文件格式:ZIP
更新时间:2024-05-29 18:15:16
JavaScript
bluebird-harness.js 重试,退避,超时库以利用承诺。 与node.js和浏览器环境兼容。 var Promise = require ( 'bluebird' ) , harness = require ( 'bluebird-harness' ) , harness ( { // make at most 3 attempts attempt : 3 , // with a 1s interval between fails interval : 1000 , // increasing interval by 1s per successive attempt backoff : 1000 , // timeout wrapped method if executes longer than 1s timeout : 1000
【文件预览】:
bluebird-harness-master
----bluebird-harness.js(2KB)
----.gitignore(30B)
----README.md(2KB)
----test()
--------bluebird-harness.test.js(3KB)
----LICENSE(1KB)
----package.json(907B)
----.travis.yml(59B)
----.DS_Store(6KB)
----bluebird-harness.min.js(1KB)
----gulpfile.js(250B)