Asynchronous And Parallel Programming In .Net – Part 7 – Task.Run Vs TaskCompletionSource Vs Task.Factory.FromAsync

There’s a lot of small intricate details that one can miss when we deal asynchronous programs. Even though these days far more superior APIs exist that make things a lot easier. For example a lot of people think if we want to call any synchronous code asynchronously, we just simply  wrap it in Task.Run. It’s … 

 

Color Coder 1.0.1 Released

It is almost a year since I first released the Color Coder extension. I haven’t spent much time on it and planed to do it once it hit a certain amount of users. But recently with Visual Studio update 15.7 the extension didn’t work properly. So I fixed it and made other improvements to it … 

 

Asynchronous And Parallel Programming In .Net – Part 6 – How Functional Programming Helps With Asynchronous And Parallel Code

There is a lot of scenarios that a functional code can introduce benefits. But asynchronous and parallel programming is one of those that fit with functional programming perfectly. I’m going use one example of this in particular. That is when we write asynchronous or parallel code, we need to consciously think about how we access … 

 

Asynchronous And Parallel Programming In .Net – Part 5 – Using Task.WhenAny And Task.WhenAll

In this post, we’re going to see when we should use Task.WhenAny and Task.WhenAll. I’m also going to explain the differences between Task.WaitAny and Task.WaitAll. Then I move on to show some example of good and bad usage of these constructs. We’re also going to see some situations such as when we need immediate processing … 

 

Asynchronous And Parallel Programming In .Net – Part 4 – Top 7 Common Mistakes

There are some common mistakes that one can see over and over again while reading an asynchronous code base. This mistakes range from egregious mistakes that can halt the whole process. To mistakes that create confusion and semantically incorrect code. So in this post, I’ll gather these common mistakes into a post with the top …