Skip to content

Task.WaitAsync description is wrong #12378

@raffaeler

Description

@raffaeler

Type of issue

Other (describe below)

Description

https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task.waitasync?view=net-10.0#system-threading-tasks-task-waitasync(system-timespan-system-timeprovider)

The description states: "Gets a Task that will complete when this Task completes or when the specified timeout expires."
This information is wrong
."

When a timeout argument is specified and the timeout expires, the Task.WaitAsync always throw a TimeoutException.

Please note that the description is wrong for all the other overloads.

Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task.waitasync?view=net-10.0#system-threading-tasks-task-waitasync(system-timespan-system-timeprovider)

Content source URL

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

Document Version Independent Id

4975978e-14a9-88e1-bec2-ea632d3c08d7

Platform Id

4fa165a2-05cd-c7d8-44d5-b6b3d0d66862

Article author

@dotnet-bot

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions