How to throw an error if promise is not awaited?

后端 未结 0 508
花落未央
花落未央 2021-01-15 02:23

I was dealing with a function that returns a promise, which was a simple Boolean. The problem is that it was something important, and I forget to use "await", so i

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