首页 > TAG信息列表 > DoSomethingAsync

await keyword blocks main thread

await keyword blocks main thread 问题 So I have the following code private async void button1_Click(object sender, EventArgs e) { await DoSomethingAsync(); MessageBox.Show("Test"); } private async Task DoSomethingAsync() { for (int