WingNews logo WingNews
top | new | best | ask | show | jobs
top | item 36025258

(no title)

uncheckederror | 2 years ago

To expand upon this thought, here is the AsyncGuidance doc[1] on why not to use .Result to get the return value of a completed Task in C#.

To make this simple they introduced async Main[2] a few years ago.

[1]: https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/b...

[2]: https://github.com/dotnet/csharplang/blob/main/proposals/csh...

discuss

order

No comments yet.

powered by hn/api // news.ycombinator.com