From 07939516fd08df7f35ed031c850148a1addff1fd Mon Sep 17 00:00:00 2001 From: jp41011 Date: Tue, 11 Mar 2025 15:19:46 -0700 Subject: [PATCH 1/2] Update Task.xml - Minor grammar fixes --- 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..2c91cefd1ff 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 overloaded version of Task.WhenAny() when this 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 not desired you may want to cancel all the remaining tasks once the first task completes. ]]> From debc9c877cbad6e88cafd8aee3c3b70864c20421 Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Tue, 25 Mar 2025 12:31:11 -0700 Subject: [PATCH 2/2] Apply suggestions from code review --- 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 2c91cefd1ff..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 if any of them completed in the `Canceled` or `Faulted` state. If that behavior is not desired you may want to cancel all the remaining tasks once the first task completes. +> 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. ]]>