In a WPF 4.5 application, I don\'t understand why the UI is blocked when I used await + a task :
private async void Button_Click(object sender, RoutedEve
Try this:
private Task JobAsync(double value) { return Task.Factory.StartNew(() => { for (int i = 0; i < 30000000; i++) value += Math.Log(Math.Sqrt(Math.Pow(value, 0.75))); return value; }); }