There’s a lot of great information on promises out there. If you’re not familiar with them, I’d recommend reading more. Here are a few resources that should get you down the path of theory as well as using them.
And of course, many thousands of additional resources can be found on your search engine of choice.
Copyright © 2016, Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.