Stumbled upon this post that talks about making async web requests.
Now simplicity aside, if in real world, all you do is make an async request and wait for it in the very next line, isn't that the same as making a sync call in the first place?
asynchronous-programmingcnet
Stumbled upon this post that talks about making async web requests.
Now simplicity aside, if in real world, all you do is make an async request and wait for it in the very next line, isn't that the same as making a sync call in the first place?
Best Answer
No,
async + await != sync
, because of continuationFrom MSDN 'Asynchronous Programming with Async and Await (C# and Visual Basic)'
For example async execution will not block UI thread, and
Some TextBox.Text
will be updated after download has finished