Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
JavaScript Promises Essentials
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Errata
Piracy
Questions
1. JavaScript Promises – Why Should I Care?
Asynchronous programming in JavaScript
Why should I care about promises?
Can't I just use a callback?
Summary
2. The Promise API and Its Compatibility
Getting to know the API
Browser support and compatibility
Checking the browser compatibility
Libraries with promise-like features
Summary
3. Chaining of Promises
Chaining like never before
Chaining in sequence
Summary
4. Error Handling
Exceptions and promises
Handling errors with promises
Summary
5. Promises in WinJS
Introducing WinJS
Explaining the WinJS.Promise object
Constructors
Events
Methods
Using WinJS promises
Summary
6. Putting It All Together – Promises in Action
Implementing a promise library
Implementing the then method
Defining a resolve method
Implementing the doResolve function
Wrapping the code
Putting the promise into action
Summary
Index
← Prev
Back
Next →
← Prev
Back
Next →