Skip to content

Commit c7af35e

Browse files
Merge pull request #11120 from dotnet/main
Merge main into live
2 parents 7cf70ff + 3a0f9ae commit c7af35e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xml/System.Threading.Tasks/Task.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7372,7 +7372,7 @@ The returned task will complete when any of the supplied tasks has completed. T
73727372
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.
73737373

73747374
> [!TIP]
7375-
> 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.
7375+
> 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.
73767376

73777377
]]></format>
73787378
</remarks>

0 commit comments

Comments
 (0)