We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.
What is the use of async in console app. Does the main thread gets to do some thing else while awaiting?
async/await in a console app isn't very useful by itself. But if you're working with code that is "async all the way down", you'll have to consume a Task. Now with async Main in C# 7.1, it's much easier to do.
Excellent, thank you!
Seems like we already have async main() according to this:
https://blogs.msdn.microsof...
What is the point of await in a console application? I hate having to add 'await' everywhere if I just want to download a string from a website. How can anyone say its a good pattern? The behaviour is syncronous yet force me to pretend to be async? I have a very very hard time adapting to this async pattern because it just seems an anti pattern for me.
Thanks for the blog. It clear my thoughts on .GetAwaiter().GetResult();
I always use await keyword. It would be nice to have a blog just on async task topic. sometimes, it makes me a little bit confuse