Skip to content

What happens when one of the argument tasks throws an exception is unclear #11350

Open
@VesperGarment

Description

@VesperGarment

Type of issue

Typo

Description

Several times in this article it says:

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.

This seems wrong. The result value isn't true - it's the first task to complete, as it just said.

I think it should say:

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.

Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task.whenany?view=net-9.0

Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Threading.Tasks/Task.xml

Document Version Independent Id

6c1ba1c9-bbea-708d-1acb-992ffe03ee26

Platform Id

8a4a84a5-87ed-1449-b986-da7f74c7fb58

Article author

@dotnet-bot

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions