---
title: "Discussion on \"Understanding Task.WhenAll in C#\" | Hashnode"
description: "Discussion on \"Understanding Task.WhenAll in C#\". Discover the benefits of using Task.WhenAll in C# for concurrent task execution"
url: "https://hashnode.com/posts/understanding-taskwhenall-in-csharp/63b295ebe79e6d3ac739b87d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Understanding Task.WhenAll in C#](https://thkarropoulos.hashnode.dev/understanding-taskwhenall-in-csharp?utm_source=hashnode&utm_medium=feed)

Discover the benefits of using Task.WhenAll in C# for concurrent task execution

Jan 2, 2023 · 2 min read · thkarropoulos.hashnode.dev  
Read the article

-   [#csharp](https://hashnode.com/tag/csharp)
-   [#net](https://hashnode.com/tag/net)
-   [#threading](https://hashnode.com/tag/threading)
-   [#asynchronous](https://hashnode.com/tag/asynchronous)

## Written by

[Theodoros Karropoulos](https://hashnode.com/@thkarropoulos)

@thkarropoulos · Athens Greece

  
[View profile](https://hashnode.com/@thkarropoulos)

Software Engineer

## Responses 1

Markdown supported · ⌘↵ to post

[Sami Mejri](https://hashnode.com/@SamiMejri)

[Jan 7, 2023](https://hashnode.com/posts/understanding-taskwhenall-in-csharp/63b295ebe79e6d3ac739b87d/comment/63b96ec8624134a0c9b427fe)

Great read, thanks. However, some developers do not now the difference between WhenAll and WaitAll, it would fantastic if you added the comparison to your article.

[Theodoros Karropoulos](https://hashnode.com/@thkarropoulos)

[Jan 7, 2023](https://hashnode.com/posts/understanding-taskwhenall-in-csharp/63b295ebe79e6d3ac739b87d/comment/63b96ec8624134a0c9b427fe#reply-63b980a095025da0eecd9b4a)

Thanks [Sami Mejri](https://hashnode.com/@SamiMejri) for your response and I am glad you find it helpful. As a short response the main difference between Task.WaitAll and Task.WhenAll is that WaitAll blocks the current thread until all other tasks have completed, while WhenAll creates a task that completes when all the other tasks have completed without blocking the thread.
