Comment on Decompiling C# (async/await)parentComments−mariusmg13yYes,for each await it basically generates a state machine. It's pretty crazy to think how much code you don't have to write by using "await".−SideburnsOfDoom13y"yield return" also makes a state machine, but a simpler one. I like async/await, but I am aware of the steep upward trend in internal complexity of these features.IMHO this means that the fruit of these features are no longer so low-hanging.
Comments
Yes,for each await it basically generates a state machine. It's pretty crazy to think how much code you don't have to write by using "await".
"yield return" also makes a state machine, but a simpler one. I like async/await, but I am aware of the steep upward trend in internal complexity of these features.
IMHO this means that the fruit of these features are no longer so low-hanging.