dotnet / dotnet/dotnet-api-docs

The `Task.Wait` note should be copied to `Task.WaitAsync`

Open
#11,202 1 comment 1 reaction 1 assignee Claimed by @antonfirsov View on GitHub
area-System.Threading.Tasks
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

See https://github.com/dotnet/runtime/pull/114689#issuecomment-2813021799.

Also nice to have:
- Improve the visibility of the notes if possible.
- Mention that exceptions may leak to `TaskScheduler.UnobservedTaskException` .
- The example should demonstrate how to observe and log exceptions.
- The `Task.Wait` example can be shortened and modernized (eg. why to start a `Thread` to cancel a `CancellationTokenSource` ?)

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.