how to nest async in Synchronize
async function main(num) {
for (var j = num; j < num+20; jPP) {
fetch(j);// } }
async function main1() {
for (let i=0;i<10;iPP) {
await main(20*i); } }
Why can"t this be done? How can we get data asynchronously with 20 fetch at the same time, and then proceed to the next 20 fetch asynchrony after completion?
look forward to the answer, explain why, thank you