2016-12-15

All in on async/await

While I haven't been coding in C# for about a year now I couldn't resist reading this recent article. A nice write-up where I only want to make two additions.

First I want to make certain you get what I think is the message in the article; if you are using async/await you should go all in as not doing so will have surprising result if you are not ready for them.

Second the author of the article mentions that the overhead of async/await is tiny. But if I remember correctly there are some compiler optimizations that make certain things having even less overhead such as returning completed tasks.

No comments:

Post a Comment