MENU

Fun & Interesting

How to use Async/Await/Task in C#

Raw Coding 80,960 5 years ago
Video Not Working? Fix It Now

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. Source: https://github.com/T0shik/raw-coding-101-tutorials/tree/master/HowToUseAsynchAwaitTask Async/Await/Task Explained: https://youtu.be/il9gl8MH17s Patreon 🤝 https://www.patreon.com/raw_coding Courses 📚 https://learning.raw-coding.dev Shop 🛒 https://shop.raw-coding.dev Discord 💬 https://discord.gg/xgNS26k Twitter 📣 https://twitter.com/anton_t0shik Twitch 🎥 https://www.twitch.tv/raw_coding 👉 Try Rider https://www.jetbrains.com/store/redeem/ RD5K9-4TXXW-KMV3G-NYWSF-3ZSTP Study Material Videos Karel Zikmund https://www.youtube.com/watch?v=TgUYcZV-foM Jeffrey Richter https://www.youtube.com/watch?v=T9UTfymRZXU Jeffrey Richter (with Demo at 41:55) https://www.youtube.com/watch?v=hB0K1JWFoqs Adam Krieger (Good info on Thread Pool) https://www.youtube.com/watch?v=NnZCcvAdV_4 Articles https://devblogs.microsoft.com/premier-developer/dissecting-the-async-methods-in-c/ https://www.codeproject.com/Articles/535635/Async-Await-and-the-Generated-StateMachine https://ranjeet.dev/understanding-how-async-state-machine-works/ #csharp

Comment