Advertisement
vamsiampolu

db.js Promises

Aug 6th, 2014
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. db.js used the Promise spec to handle asynchronous operations. All operations that are asynchronous will return an instance of the internal Promise object that exposes a then method which will take up to three callbacks, success, failed and progress. It also exposes useful helpers for these such as done, fail and progress.
  2.  
  3. As of version 0.7.0 db.js’s Promise API is designed to work with jQuery, allowing you to link db.js Promises with other Promises.
  4.  
  5. Note: It’s likely that other Promise libraries also integrate with it, jQuery is just the only tested on.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement