Want to make a lot of asynchronous requests. The number of requests from 10 to 1000, should write down the answer in array (order is not important, no dependency)
while (i<5) {
api.get("get", offset: i, function(result) {
datag = datag.concat(data.id);
})
i++;
}
Is it right way? Is there a particular? the synchronous javascript used with asynchronous requests and i afraid of unexpected situations
api.get? Why so many request? Is there not a way you could do it in less requests?