📜  在没有异步但有同步的情况下调用异步函数 - Javascript 代码示例

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

代码示例1
async function doStuff(arg) {console.log(arg + "Assume this is a useful async function")}


doStuff.apply(/* What to specify as this */ this, /* List of args */ ["hello world "])