C# async/await in depth

01. C# Async/Await/Task Explained (Deep Dive). (Channel “Raw Coding”).
“In this tutorial we conver the asynchronous programming style in C# we take a deep diving looking at the state machine that the async keyword spawns. How the await keyword creates checkpoints in the state machine. And how the Task class allows us to bridge our code to use the asynchronous programming model.”

02. How to use Async/Await/Task in C#. (Channel “Raw Coding”)
“In this tutorial we take a look at how to use async, await and Task in C#. Primarily looking at good practices and how to avoid common pitfalls such as creating unecessary state machines, blocking threads, using ConfigureAwait when making libraries and how to avoid async in constructors.”

Related videos

03. Semaphore Explained C#.
In this Semaphore tutorial, I answer the questions: what is semaphore? what is semaphore used for? how to use semaphore? We go over a quick analogy to understand what the semaphore does and how to use it. We then look at a real world example of how it can be used to solve problems caused by asynchronous programming.

04. C# Channels Explained (System.Threading.Channels).
In this c# channels tutorial I answer the questions: what is a channel? how does a channel work? how to use a channel? when to use a channel? what problem does a channel solve?
Contents:
1. Basic problem that would require shared state to improve.
2. Simple custom implementation of channels.
3. Real World Example of Channels in ASP.NET Core


Links on the Channel subject:
An Introduction to Channels in C#. Jeremy Bytes
Channel Class (Namespace: System.Threading.Channels)
Channel<T> Class (Namespace: System.Threading.Channels)

Leave a Reply

Your email address will not be published.