Asynchronous in Windows Application

442

Example 1: Click a button to download file from internet

Example 2: Task Parallel Library – Continuation

Login button click

 

Example 3: asyn and await

 

Example 4: Asyn ASP.NET

Deadlock. trick to prevent deadlock

 

http://blog.stephencleary.com/2012/07/dont-block-on-async-code.html

Conclusion: