We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.

imi khan • 5 years ago

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

Iftikhar Ali • 5 years ago

What is the use of async in console app. Does the main thread gets to do some thing else while awaiting?

Nate Barbettini • 5 years ago

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.

Elias Jubran • 5 years ago

Excellent, thank you!

Finnur Hrafn Jonsson • 6 years ago

Seems like we already have async main() according to this:
https://blogs.msdn.microsof...

Luke • 4 years ago

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.

Brad Lindsay • 4 years ago