Deep .NET: Writing async/await from scratch in C# with Stephen Toub and Scott Hanselman
dotnet
Join Stephen Toub and Scott Hanselman as they dive deep into the world of .NET. On this first episode, Stephen and Scott demystify the world of asynchronous programing with .NET and specifically the magic behind async/await, something that developers use every day. To do so, he builds his very own implementation of async/await completely from scratch and explains throughout the way. If you are looking to go deeper with .NET then you are in the right place.
Chapters:
00:00 – Intro
03:00 – Understanding concurrency, parallelism, and asynchronous
08:30 – Creating our own ThreadPool
26:00 – Creating our own Task
45:30 – Putting together ThreadPool and Tasks
56:00 – Async iterators and yield
01:05:00 – Wrap-up
Resources:
Blog: https://devblogs.microsoft.com/dotnet/how-async-await-really-works/
Docs: https://learn.microsoft.com/dotnet/csharp/asynchronous-programming/
Final Code: https://gist.github.com/jamesmontemagno/12992547430b85723e997a312f13ddf7
Connect with .NET:
Blog: https://aka.ms/dotnet/blog
Twitter: https://aka.ms/dotnet/twitter
TikTok: https://aka.ms/dotnet/tiktok
Mastodon: https://aka.ms/dotnet/mastodon
LinkedIn: https://aka.ms/dotnet/linkedin
Facebook: https://aka.ms/dotnet/facebook
Docs: https://learn.microsoft.com/dotnet
Forums: https://aka.ms/dotnet/forums
🙋♀️Q&A: https://aka.ms/dotnet-qa
👨🎓Microsoft Learn: https://aka.ms/learndotnet
#dotnet #asyncawait #csharp