Ignore the Tasks throwing Exceptions at Task.WhenAll and get only the completed results
问题 I am working on a Task parallel problem that I have many Tasks that may or may not throw Exception. I want to process all the tasks that finishes properly and log the rest. The Task.WhenAll propage the Task exception without allowing me to gather the rest results. static readonly Task<string> NormalTask1 = Task.FromResult("Task result 1"); static readonly Task<string> NormalTask2 = Task.FromResult("Task result 2"); static readonly Task<string> ExceptionTk = Task.FromException<string>(new