NodeJS event loop wrong order

前端 未结 0 1697
迷失自我
迷失自我 2021-02-06 06:11

My express code:

app.use(\'/test\', async (req, res, next) => {
  try {
    setTimeout(() => console.log(\'setTimeout\')); // setTimeout (macrotask)
    Use         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题