Saturday, November 29, 2014

.Net 4.5 Async Await for a more responsive design

Writing this so I'll remember the details. There is a good resource on the Await and Async keywords in MSDN:

The key thing is that the execution is released back to the event loop until the async method is executed and completed. So there is no blocking of the event loop causing rendering problems in the GUI.

There is a lot of arrows in the sample in MSDN but the summary is that code will go back and resume executing the "continuation" after the async method has completed. This is great for long-running processes like downloading resources.


Ralph Carpenter said...

What amazes me most is the execution is realeased back to the event loop untill the async method is ececuted and comleted. Keep up with the great job of sharing this here.

fm1v7o29qn said...

The first playing software was launched in 1994 by Microgaming. The first video games that were out there to play on-line were Craps, Roulette, Video Poker 온라인 카지노 and Blackjack. It was not till 1998 when the primary progressive jackpot known as ‘Cash Splash’ was launched.