Skip to content

Comment on Decompiling C# (async/await)parent

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.