async function retryGetItem( oriFun) {

var operation = retry.operation();
operation.attempt(function (currentAttempt) {

oriFun.catch(function (err) {
console.log(err ? operation.mainError() : null);
console.log("Connect Times:" + currentAttempt + ":" + err);
if (operation.retry(err)) {
return;
}

});
});
posted on 2018-04-17 06:19  wblade  阅读(419)  评论(0编辑  收藏  举报