dotnet / dotnet/dotnet-api-docs

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

Aperta
#11,202 1 commento 1 reazione 1 assegnatario Rivendicata da @antonfirsov Vedi su GitHub
area-System.Threading.Tasks
Lingua principale
C#
Stelle
949
Fork
1.7k
Merge medio
2g 19h
PR unite (30g)
52

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.