📜  await asyc foreach - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:12.445000             🧑  作者: Mango

代码示例3
// Javascript will proceed to call the code that comes AFTER the forEach loop, 
// and then execute the code within the loop. This is because forEach is not 
// async-aware. YOU CANNOT USE AWAIT IN FOREACH. Use a regular for loop instead.