文件名称:retry-as-promised:重试失败的承诺
文件大小:6KB
文件格式:ZIP
更新时间:2024-05-23 09:41:21
JavaScript
承诺重试 根据,重试承诺失败时。 安装 $ npm install --save retry-as-promised $ yarn add retry-as-promised 配置 var retry = require ( 'retry-as-promised' ) ; var warningFn = function ( msg ) { someLoggingFunction ( msg , 'notice' ) ; } ; // Will call the until max retries or the promise is resolved. return retry ( function ( options ) { // options.current, times callback has been called including this call return
【文件预览】:
retry-as-promised-master
----.travis.yml(37B)
----index.js(4KB)
----package.json(1KB)
----test()
--------promise.test.js(11KB)
----LICENSE(1KB)
----.gitignore(536B)
----README.md(1KB)