Thread control flow in async .NET Console program [duplicate]
This question already has an answer here: Async and await - difference between console, Windows Forms and ASP.NET 1 answer I was messing around with async/await in C# just to dig into some of the thread control flow and stumbled upon an unusual behavior that I would really appreciate clarification on. It would make sense that the execution after await continues on a calling thread even if the Task itself was executed in background. And in fact that's exactly what happens with, let's say, WPF. The following code: private async void Button_Click(object sender, RoutedEventArgs e) { Console