In the previous guide in this series we took a look at the basics of the async and await keywords in C#. Once you get the hang of their syntax and usage, it can actually be quite a joy to write asynchronous code. In fact, it feels so natural that one can forget that the code is asynchronous! Often this is an advantage; you can ignore the minutiae and focus on the application you’re building. But, sooner or later, you will come across some confusing behavior that will remind you how tricky asynchronicity can be. It’s at these moments that understanding what happens under the hood when using async and await becomes important. It turns out that there is a lot going on.

#csharp #async #await

Understanding Control Flow with Async and Await in C#
12.45 GEEK