Better way to show error messages in async methods

前端 未结 2 1380
鱼传尺愫
鱼传尺愫 2021-02-19 21:01

The fact that we can\'t use the await keyword in catch blocks makes it quite awkward to show error messages from async methods in WinRT, since the

2条回答
  •  再見小時候
    2021-02-19 21:47

    C# 6 now supports await in catch and finally, so the code can be written the way I wanted it; a workaround is no longer needed.

提交回复
热议问题