Skip to content

The Task.Wait note should be copied to Task.WaitAsync #11202

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
antonfirsov opened this issue Apr 17, 2025 · 1 comment
Open

The Task.Wait note should be copied to Task.WaitAsync #11202

antonfirsov opened this issue Apr 17, 2025 · 1 comment
Assignees
Labels
area-System.Threading.Tasks untriaged New issue has not been triaged by the area owner

Comments

@antonfirsov
Copy link
Member

antonfirsov commented Apr 17, 2025

See dotnet/runtime#114689 (comment).

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 ?)
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Apr 17, 2025
@antonfirsov antonfirsov self-assigned this Apr 17, 2025
Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-threading-tasks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.Threading.Tasks untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

No branches or pull requests

1 participant