How to handle exceptions from promises in TypeScript with async await?

后端 未结 0 379
-上瘾入骨i
-上瘾入骨i 2020-12-13 06:34

I am trying to find a nice way of handling exceptions in TypeScript with promises with async/await

Here\'s what I have so far

    private async initDir         


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