retries
v1.0.0
Published
Simple Retry framework with deferred.
Downloads
171
Readme
Retries
Simple Retry framework with deferred.
const Retry = require("retries");
Retry(func: Function|Promise, options: Object).then((result)=>{
console.log(result);
}).catch((err)=>{
console.log("err", err);
});
options
|Attr |Type |Default| |------------------|------|------:| |times |Int |5 | |interval |Number|1000 | |exponentialBackoff|Bool |true |