From 3a0f9aee28f57e98e1661af0caac89a3782b9309 Mon Sep 17 00:00:00 2001 From: jp41011 Date: Tue, 25 Mar 2025 12:51:42 -0700 Subject: [PATCH] Update Task.xml - Minor grammar fixes (#11074) --- xml/System.Threading.Tasks/Task.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml/System.Threading.Tasks/Task.xml b/xml/System.Threading.Tasks/Task.xml index 181281fea8c..bb5b5716c15 100644 --- a/xml/System.Threading.Tasks/Task.xml +++ b/xml/System.Threading.Tasks/Task.xml @@ -7372,7 +7372,7 @@ The returned task will complete when any of the supplied tasks has completed. T The returned task will complete when any of the supplied tasks has completed. The returned task will always end in the `RanToCompletion` state with its `Result` set to the first task to complete. The result value is `true` even if the first task to complete ended in the `Canceled` or `Faulted` state. > [!TIP] -> In every overloaded version of Task.WhenAny() when this method returns the first completed task, the other tasks will continue running until completion, even any of them completed in the `Canceled` or `Faulted` state. So, if that behavior is not desired you may want to cancel all the remaining tasks once the first task complete. +> In every overload of Task.WhenAny(), when the method returns the first completed task, the other tasks will continue running until completion, even if any of them completed in the `Canceled` or `Faulted` state. If that behavior is undesirable, you can cancel all the remaining tasks once the first task completes. ]]>