How to Work with Promise in Windows Store Apps

Windows Store Apps makes use of Promise, as a way to deal with the complexities involved in asynchronous programming. Its implementation is based on Common JS Promises proposal  At code level, this is an object that represents the result of an asynchronous operation and then returns a value some time later in the future. Promises make easy to work in asynchronous applications in Windows store apps.

You can wire functions on a Promise object in three phases of execution, asynchronous operation completed, asynchronous that generated in an error, and the asynchronous operation in progress.

Read the rest of the article here: http://www.codeguru.com/csharp/.net/working-with-promises-in-windows-store-apps.htm

Leave a Reply

Your email address will not be published. Required fields are marked *