Skip to content

Commit 39a1a65

Browse files
Copilotgewarren
andcommitted
Update Task.WhenAny documentation tense per review feedback
Co-authored-by: gewarren <[email protected]>
1 parent 6420cea commit 39a1a65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xml/System.Threading.Tasks/Task.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7092,7 +7092,7 @@ An exception was thrown during
70927092

70937093
## Remarks
70947094

7095-
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. This is true even if the first task to complete ended in the `Canceled` or `Faulted` state.
7095+
The returned task completes when any of the supplied tasks has completed. The returned task always ends in the `RanToCompletion` state with its `Result` set to the first task to complete. This is true even if the first task to complete ended in the `Canceled` or `Faulted` state.
70967096

70977097
]]></format>
70987098
</remarks>
@@ -7359,7 +7359,7 @@ The returned task will complete when any of the supplied tasks has completed. T
73597359

73607360
## Remarks
73617361

7362-
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. This is true even if the first task to complete ended in the `Canceled` or `Faulted` state.
7362+
The returned task completes when any of the supplied tasks has completed. The returned task always ends in the `RanToCompletion` state with its `Result` set to the first task to complete. This is true even if the first task to complete ended in the `Canceled` or `Faulted` state.
73637363

73647364
> [!TIP]
73657365
> 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.

0 commit comments

Comments
 (0)