I am new to promise, and I am reading a piece of codes which is pretty difficult for me to understand:
return promise
.then(function helper0(instances) {
return helper1(instances, options)
.then(function helper2() {
return bluebird.delay(3000)
.then(function helper3() {
return helper4(localParams, options);
});
}
});
});
How to re-factor it to promise.then().then()...
? Thanks