AsyncJS with a for loop
I'm looking to do something fairly simple with Nodejs and Async.
I have a number, say 4 for our example. And I want to make a request 4
times and then trigger a callback when they have all returned.
var entries = [];
for(i=0; i<3; i++) {
// request made for i, result pushed to entries array
}
Which async method can I use a for loop in?
No comments:
Post a Comment