📅  最后修改于: 2022-03-11 15:01:39.143000             🧑  作者: Mango
const Output = [];
for await (const item of List) {
let result = await someAsyncFunction(item);
Output.push(result);
};
res.status(200).json(Output); // response is sent after the loop is finished