While I was using async.until() function I observed that the test is not getting invoked repetitively though it is returning false. As a result function is not getting invoked to perform the next task.
var resultReceived = false;
async.until(function(){
console.log("Checking result : "+resultReceived);
return resultReceived;
}, function(callback){
try{
//do something
resultReceived = true;
}catch(err){
resultReceived = false;
}
}, function(result){
console.log("====================");
console.log(result);
callback(result);
});