Why promise runs before the timeout here?

后端 未结 0 1505
名媛妹妹
名媛妹妹 2020-11-27 14:09

In the code snippet below both the setTimeout and reject get executed asynchronous. My impression is that setTimeout pushes to the even queue, then reject pushes to the even

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