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
The doc says: async.until(test, iteratee, callback), but the example shows async.until(iteratee, test, callback).
constresults=[]async.until(functioniter(next){fetchPage(url,(err,body)=>{if(err)returnnext(err)results=results.concat(body.objects)next(err,body)})},functiontest(page,cb){cb(null,page.next==null)},functiondone(err){// all pages have been fetched})
Documentation for until in v3.x has the parameters swapped in the example below:
http://caolan.github.io/async/v3/docs.html#until
The doc says:
async.until(test, iteratee, callback)
, but the example showsasync.until(iteratee, test, callback)
.According to the source it should be
until(test, iteratee, callback)
.http://caolan.github.io/async/v3/until.js.html
The text was updated successfully, but these errors were encountered: