WinRT Async Tutorial

Published Sat, Jun 30 2012 12:53

WinRT applications, available on both Windows 8 and Windows RT operating systems, make extensive use of asynchronous programming concepts. In fact, with WinRT, Microsoft has followed a simple rule: if an API is expected to take more than 50 milliseconds to run, the API is asynchronous. The rationale behind this decision was to make user experience fluid and not hang or block the UI while an operation is being completed.

In this tutorial, we create two simple applications that demonstrate the use of asynchronous programming using direct API calls as well as writing custom methods that are asynchronous.  We discuss the ‘Await” keyword and how it is used. We also demonstrate the concepts of an asynchronous ‘task’ and how we use tasks to implement asynchronous activities.

by Burrows

Comments

# Larry Goldstein said on Tuesday, July 03, 2012 12:31 PM

Hi Bill,

Thanks for another delightful tutorial. I am just getting my Win 8 environment set up and can hardly wait to try out the code you supplied with the tutorial. One minor question: I really like the format of the slides you are displaying. What software package are you using to create them. They look quite spiffy!

Thanks for all your efforts.

Larry Goldstein

# Burrows said on Tuesday, July 03, 2012 12:57 PM

Hi Larry,

Thanks. I'll be getting more Windows 8 material done soon.

I use Camtasia Studio 8 from Techsmith.com to capture the screen and do the production. I publish the videos with the highest quality they provide. This makes the file sizes larger but I think the quality is more important.

bill

# MikeW - dallas said on Thursday, September 06, 2012 11:12 AM

Two thumbs up on the new RT videos !  As a long-time windows developer, I am trying to get my head around RT.  This helps.  

thanks,

keep them coming ....

Leave a Comment

(required) 
(required) 
(optional)
(required) 
If you can't read this number refresh your screen
Enter the numbers above: