using System.Threading.Tasks;
using System.Diagnostics;
public static async Task DoStuffAwait()
Console.WriteLine("Done!");
public static void DoStuffBlocking()
Console.WriteLine("Done!");
public static async Task Main()
var stopwatch = new Stopwatch();
await t1; await t2; await t3;
Console.WriteLine($"Using tasks with await took {stopwatch.ElapsedMilliseconds}ms");
Console.WriteLine($"Using blocking version took {stopwatch.ElapsedMilliseconds}ms");