News for hackers. Stuff that matters.
Re:Asynchronous Programming in C# by tobbebex on Friday September 24, 2021 @12:01PM (#28644203)
An non-async Task<int> is returning a Task<int> object, where the return statement of an async Task<int> method is of type int (which will be wrapped in the resulting Task). ”return 1;” eg only works in the latter case.

There are no comments on this comment yet.