Skip to content

Conversation

@BartoszKlonowski
Copy link
Contributor

@BartoszKlonowski BartoszKlonowski commented Sep 8, 2025

This pull request closes #48252, by introducing Task.WhenEach with an example of how to simplify the tasks loop handling in the tutorial.

There is a full example in snippets, but I decided not to add this simplify approach to that example to avoid confusions on why the full code has two approaches, how to combine them both in Main, etc.
Let me know if this would actually be good idea to add it there.


Internal previews

📄 File 🔗 Preview link
docs/csharp/asynchronous-programming/start-multiple-async-tasks-and-process-them-as-they-complete.md Process asynchronous tasks as they complete (C#)

@BartoszKlonowski BartoszKlonowski requested review from a team and BillWagner as code owners September 8, 2025 22:26
@dotnetrepoman dotnetrepoman bot added this to the September 2025 milestone Sep 8, 2025
@dotnet-policy-service dotnet-policy-service bot added dotnet-csharp/svc async-task-programming/subsvc community-contribution Indicates PR is created by someone from the .NET community. labels Sep 8, 2025
Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @BartoszKlonowski

This LGTM and I'll :shipit: when the build completes.

@BillWagner BillWagner enabled auto-merge (squash) September 9, 2025 15:02
@BillWagner BillWagner merged commit 4c64e70 into dotnet:main Sep 9, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

async-task-programming/subsvc community-contribution Indicates PR is created by someone from the .NET community. dotnet-csharp/svc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Async programming documentation "Process asynchronous tasks as they complete" does not mention Task.WhenEach

2 participants