example: there are 3 request sending simultaneously
axios.get(url1) needs 1s to get response
axios.get(url2) needs 2s to get response
axios.get(url3) needs 3s to get response
how to get responses like res1 then res2 then res3 ?
promise.all and promise.race can not do this(because all will wait the lowest response not return from fastest to slowest, and race will return the fastest not all)
If all the URLs are in an array, you can simply loop over the array, calling axios.get() on each one.
urls.forEach(url => axios.get(url).then(response => { process the response }));