📜  async foreach - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:20.201000             🧑  作者: Mango

代码示例6
// 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.