You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the async documentation, the last iterator value from whilst should be returned to the result handler. This probably is an issue with other calls like until and doWhilst.
'use strict';varpasync=require('pasync');varcount=0;pasync.whilst(function(){returncount<5;},function(){returnnewPromise(function(resolve,reject){count++;setTimeout(function(){resolve(count);},1000);});}).then(function(val){console.log('value: ',val);// should be 5},function(err){console.log('err: ',err);});
The text was updated successfully, but these errors were encountered:
According to the async documentation, the last iterator value from whilst should be returned to the result handler. This probably is an issue with other calls like until and doWhilst.
https://github.com/caolan/async#whilst
The text was updated successfully, but these errors were encountered: