DEV Community

Discussion on: How YOU can make your .NET programs more responsive with async/await in .NET Core, C# and VS Code

Collapse
 
softchris profile image
Chris Noring

hi... No I mean WhenAll. So WhenAll returns right away, it returns a Task, which means it carries out the next line of code which is to calculate time taken. WaitAll blocks and this why we get a higher time taken.. (We wait until the slowest task in WaitAll have finished until we continue with the next line of code)

Collapse
 
amul047 profile image
amul047

Awesome, thanks for the clarification