Promises and Futures in JavaScript

[Note: A new version of Promise.js is available here. It has a less restrictive license and additional functionality. Please be sure to check it out.] A Promise is a programming model that deals with deferred results in concurrent programming.  The basic idea around promises are that rather than issuing a blocking call for a resource…

7