How to nest asynchrony in Synchronize?

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

Mar.13,2021

Promise.all
or

const fetchRes=[];
for(let i=0;i<20;PPi){
    fetchRes.push(fetch(...));
}
for(let i=0;i<20;PPi){
    await fetRes[i];
}
Menu