© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
18 replies
Kroks

✅ How to install a callback for an awaited item when using Task.WhenAll

Hello I am using Task.WhenAll on a List of Tasks. However if a task fails I want to immediately call another function on the task (for retrying it and handling other things). How can I do that?

I want a solution with good performance.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

✅ Using IProgress with await Task.WhenAll(tasks);
C#CC# / help
2y ago
get value from parallel for loop using Task.WhenAll
C#CC# / help
4y ago
❔ Any way to optimize this? Task.WhenAll
C#CC# / help
3y ago