How to run tasks synchronously without blocking the UI thread in C# <= .NET 4.0
If you want to execute 3 tasks synchronously (one after the other), but you don’t want these tasks to block the UI thread. You can use the following code: Note: Thread.Sleep(…) is a blocking operation