dotnet-threading icon indicating copy to clipboard operation
dotnet-threading copied to clipboard

Additional Using overloads

Open sharwell opened this issue 11 years ago • 1 comments

Consider providing overloads for TaskBlocks.Using where the body function returns a TResult value instead of a Task<TResult>.

sharwell avatar Aug 01 '14 17:08 sharwell

After examining the source code for the Task Parallel Library in some detail, I determined that the overhead involved with returning CompletedTask.FromResult(result) instead of just result is sufficiently small that this is not a critical issue, even if it does get implemented in a future release.

sharwell avatar Aug 09 '14 21:08 sharwell