In C#, Task.WhenAll is commonly used to run multiple tasks in parallel, but is it always the best option? In this video, I'll explore scenarios where Task.WhenAll may not be the most efficient choice. I'll also demonstrate how to create a custom method for executing tasks in parallel, avoiding the pitfalls of Task.WhenAll.
Check the code[RunMultipleTasks]: https://github.com/sa-es-ir/youtube-s...
#dotnet #csharp #task #taskwhenall #concurrency #asyncawait #asynchronousprogramming
#aspdotnetcore
Moments
00:00 - Intro
00:30 - Running Tasks sequentially
01:17 - Running Tasks in-parallel using Task.WhenAll
02:30 - How Task.WhenAll works?
06:00 - What is behind the sense?
08:30 - New way of running tasks in parallel!
-------------------------------------------
Follow me on LinkedIn:
/ sa-es-ir