In the below pseudocode, when the for loop executes each iteration, then will the for
loop block at each iteration waiting for the response of the async fetch
(because await
is used within the myasyncfn
? Or do I need to use await
keyword as shown in the comment below?
async myasyncfn(url){
return await fetch(url..).response;
}
for each url in url_array:
myasyncfn(url); #await myasyncfn(url)