Async and Await Mastery – C# Pro Tips to Take You to the Next Level

preview_player
Показать описание
Async and await is probably one of the most misunderstood parts of C# and the entire #DotNet ecosystem. In this video we focus to explain the fundamentals of async and await starting by understanding how computers tend to work, what problems we have with synchronous code and how async and await can solve these problems when used the right way.
#DotNetCore #csharp

Join this channel to get access to perks:

Chapters
1. Intro: 00:00
2. Cooking breakfast: 00:58
3. Processes and threads: 06:31
4. Cooking breakfast synchronously: 09:46
5. The blocked threads problem: 14:08
6. The parallelism problem: 16:08
7. Fixing blocked threads with async/await: 16:58
8. Async/await doesn't add parallelization: 25:09
9. Refactoring towards parallelism: 29:16
10. Running async methods in parallel: 34:55
11. Conclusions: 43:15
Рекомендации по теме
Комментарии
Автор

I really searched like anything to understand Async and Await but didn’t work, but this explanation stands out next level. Excellent

rangak
Автор

Best lesson on this topic I have seen. Thanks sir

beloaded
Автор

I made many test project trying to understand what is the diffrence between synchronous and (async await) and finally got the answer,
The best statement you sayed : the goal of async await is just to make the thread go back to the thread pool, not to make a parallel tasks

abedakour-tjcf
Автор

good explanation, now my concept around async/await in c# is clear, thank you!

anoopkothapally
Автор

tried to understand this many times before finally understood thanks very much

ibrahimghazy
Автор

Awesome presentation! I appreciate what you do looking deep into optimization!

kuanleonwen
Автор

Nice explanation, really cleared some of my misunderstandings. Maybe I can fix some of the parallel issues we have at work...

nedbog
Автор

One of the best explanation ever . ❤️ This clearly helped me to tune my code for parallelism..Cheers. 👍

sibaprasaddalai
Автор

Thank you very much for your content you provide! Please dont stop, it helps me and others to be better developers! You got a new subscriber here!

matasbernotas
Автор

Thank you for the video! Really helpful and clear 🙏🏼

dimitriskidis
Автор

Great tutorial, i would come at the multi threading, in a slightly different angle, create a multiple "Task.Factory.StartNew"and add all my Tasks to an array. Then wait on the array of Tasks to complete. Just a different approach.

CarrigansGuitarClub
Автор

Excellent video! Thank you for your valuable content.

AESnareline
Автор

Thank you so much for all your efforts 👌

VinuP
Автор

Thank you for providing such a great content.
Would you mind sharing the source code you are using?
Cheers!

DH-jwiy
Автор

Thank you for this awesome guide.

P.S. PanFrying method was left without Async suffix teacher :)

hamitenes
Автор

Thanks @Codewrinkles for nice explanation. I have a doubt. I understood that async await solves the problem of blocking thread. - the work which is going in background ( after await keyword ), some thread is still taking care of that work right? without thread how that work will be completed, or at least some thread is in listening mode of the notification that task is completed.
I understand that in Windows application probably it will be responsive because main thread is free, how it helps in webAPI? is it like handing over the work to another thread and keep current one free, but I studied everywhere it's nothing to do with threading, then who takes care the Task work which was awaited,
Sorry If I am asking a lame question find it bit complex and want to be very clear on this .

praveenupadhyay
Автор

thanks for the video. where can i download the source

nightwolf