8 await async mistakes that you SHOULD avoid in NET
>> YOUR LINK HERE: ___ http://youtube.com/watch?v=lQu-eBIIh-w
Become a Patreon and get source code access: / nickchapsas • Check out my courses: https://dometrain.com • Hello everybody I'm Nick and in this video I wanna talk real world mistakes that you might encounter regarding await async. It's an interesting topic that many people tend to get wrong and this comes down to how Microsoft handled the original rollout of the feature. In this video I will go through 8 real world scenarios of how it can be done wrong and talk about how we can fix them. • Timestamps: • 0:00 - Intoduction • 1:19 - Once async always async • 2:46 - Async void is BAD • 6:05 - Prefer Task.FromResult over Task.Run • 8:00 - Avoid .Result and .Wait • 9:37 - Prefer await over ContinueWith • 11:19 - Always pass the CancellationToken • 15:16 - Prefer async Task over Task • 17:11 - Don't sync over async in constructors • Raw coding video: • C# Async/Await/Task Explained (Deep D... • David Fowler's page: https://github.com/davidfowl/AspNetCo... • ValueTask: https://devblogs.microsoft.com/dotnet... • Don't forget to comment, like and subscribe :) • Social Media: • Follow me on GitHub: http://bit.ly/ChapsasGitHub • Follow me on Twitter: http://bit.ly/ChapsasTwitter • Connect on LinkedIn: http://bit.ly/ChapsasLinkedIn • #dotnet #await #async
#############################
