DEV Community

Discussion on: Demystifying Async & Await in C#

Collapse
 
zhiyuanamos profile image
Zhi Yuan

Hello! I think there's 2 minor bugs:

  1. Result is a property, not a method. So you should be using .Result to access the value, not .Result().

2.

parallelise everything that you see in your code when you start using async and await

I think "parallelise" isn't the best word to be used here, since you've already stated above that "Tasks do not guarantee parallel execution" :P

Collapse
 
sahan profile image
Sahan

Thanks for the feedback indeed.

1 - Good catch mate. I have updated the article.
2 - Yeah, you are correct. My intention was to tell the reader to make everything async than parallelise. Updated it accordingly :)