Wait for async method to complete multi threaded task

后端 未结 0 1610
北荒
北荒 2021-01-03 20:58

My scenario i have 2 methods being call one after another, I want that method1 completes before calling method2 :

await method1();
await method2();

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