Wait for a void async method

后端 未结 6 1274
终归单人心
终归单人心 2020-12-02 07:20

How can I wait for a void async method to finish its job?

for example, I have a function like below:

async void LoadBlahBlah()
{
    awa         


        
6条回答
  •  庸人自扰
    2020-12-02 07:56

    If you can change the signature of your function to async Task then you can use the code presented here

提交回复
热议问题