How to handle error within await Task.Run?

前端 未结 0 1710
醉话见心
醉话见心 2020-12-30 16:11

I try to call a method getOrders(id) with await Task.Run() within an async .net 5 API. If the method getOrders(id) produces an error, I want it to bubble up to the calling a

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