Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Asynchronous Programming in C#. Parent comment
T SyncResult<T>(this Task<T> task){ return task.ConfigureAwait(false).Result; }
Same for ValueTask. It may already be implemented in the base .NET library as well.
There are no comments on this comment yet.
T SyncResult<T>(this Task<T> task){ return task.ConfigureAwait(false).Result; }
Same for ValueTask. It may already be implemented in the base .NET library as well.