Allow Expression Trees with async/await #1505
Unanswered
jmaine
asked this question in
Language Ideas
Replies: 1 comment
-
Related/duplicate of #158. |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Example:
Expression<Func<Func<Task<int>> Task<bool>>> lambda = async f => await f() < 5;
'Await' here will be translated to System.Linq.Expressions.AwaitExpression without creating a state machine when c# compiler runs.
lambda.compile() would be responsible translating the expression tree with AwaitExpression into the needed state machines that make the newly compiled async/await method work.
Beta Was this translation helpful? Give feedback.
All reactions