Closed
Description
Folks, when I used the async.whilst the function where I inserted the code restarted wihout reason when I used a "loop" so long, example
this.myfunction= function (number, callback) {
var count=0;
async.whilst (
function () {
return count< 5000;
},
function (asyncCallback) {
count++;
asyncCallback();
});
},
function (err) {
callback('something');
}
);
};
When I changed to async.until it worked!