you can use async
module, check the documentation
let async = require('async');
async.eachSeries(items, async(item)=>{
await getData1();
const a = await getData2();
const b = await getData3(a);
},()=>{
console.log("finish")
})
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…