Task Delegate Conversions #1598
Unanswered
TonyValenti
asked this question in
Language Ideas
Replies: 2 comments
-
related to LINQ section in https://github.com/dotnet/csharplang/blob/master/proposals/async-streams.md |
Beta Was this translation helpful? Give feedback.
0 replies
-
Not sure I like the idea of hiding that expense and complexity in an automatic conversion. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
It would be nice if Funcs and Actions could be automatically converted to their task equivalents. For example:
The conversion from a func/action to a task would essentially be call the func/action and then return either Task.CompletedTask (if it was an action) or Task.FromResult(...) if it was a func.
Beta Was this translation helpful? Give feedback.
All reactions