Part 9: Understanding JavaScript Async Promises
- Posted: Feb 28, 2013 at 3:25 PM
- 13,008 Views
- 2 Comments
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
Right click “Save as…”
In this lesson, we backtrack and learn about the Async features in the WinJS Library. We cover the basics of processes and threads, how the Windows 8 execution model has changed, how apps have traditionally handled long running operations, and how Async Promises simplifies development and debugging of async operations.
Asynchronous programming in JavaScript
http://msdn.microsoft.com/en-us/library/windows/apps/hh700330.aspx
WinJS Promise Example
http://code.msdn.microsoft.com/windowsapps/Promise-e1571015
Already have a Channel 9 account? Please sign in
Follow the Discussion
Oops, something didn't work.
What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in. You need to be signed in to Channel 9 to use this feature.What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in and view them all on your notifications page.sign up for email notifications?
Isn't promises callbacks under the cover?
@mshaw: I don't claim to be the expert on this at all. I have an "end user's" knowledge. However, this article:
http://dev.bennage.com/blog/2012/08/21/winjs-unpacking-promises/
... does a really nice explaining what the promise really is and how it relates to callbacks.
"A promise is an object. It is not a function and it is not the value returned from the async operation. To get to the value, you need to call the
thenmethod on the promise object. You pass a callback function as an argument tothen. The promise invokes the callback and passes the value you're interested in into the callback. Clear as mud, right?"Remove this comment
Remove this thread
close