Deadlock while using async/await
问题 I'm trying to understand await and async . It works very well. But now I have a deadlock. I've called ConfigureAwait with false , like in this article, but my code is still blocking. Here's a little snippet of my code: private void button1_Click(object sender, EventArgs e) { var result = HeavyWorkAsync().Result; richTextBox1.AppendText(result); } private string HeavyWork() { for (var index = 0; index < 1000; index++) { Task.Delay(10).Wait(); } return "finished"; } private async Task<string>