Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional Using overloads #28

Open
sharwell opened this issue Aug 1, 2014 · 1 comment
Open

Additional Using overloads #28

sharwell opened this issue Aug 1, 2014 · 1 comment
Milestone

Comments

@sharwell
Copy link
Member

sharwell commented Aug 1, 2014

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

@sharwell sharwell removed this from the 1.1 milestone Aug 8, 2014
@sharwell
Copy link
Member Author

sharwell commented Aug 9, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant