If you have a chain of promises, all of them have already started, and you canβt do anything to start or stop any of them (you can cancel, but as much as possible).
Assuming you return the functions F1,... Fn , you can use the basic building block promises, our .then for this:
var promises = ;
So, a less annotated version:
var res = promises.reduce(function(accum,cur){ return accum.then(cur); },Q()); res.then(function(res){
source share