Skip to content

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

Open
@antonfirsov

Description

@antonfirsov

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 ?)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions