dotnet / dotnet/dotnet-api-docs

Task.Wait docs don't tell what happens to Task after timeout

Open
#3,602 2 comments 0 reactions 0 assignees View on GitHub
area-System.Threading.Tasks Pri3 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

The Task.Wait methods which accept timeout as a parameter, can complete before the Task itself completes. [The docs](https://docs.microsoft.com/en-us/dotnet/api/system.threading.tasks.task.wait) don't tell explicitly what happens to the Task itself in such scenario, which I observed to lead to some confusion.

Would it be ok to add an information that "the Task itself is not stopped" at the end of the remark about timeout elpapsing?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.