Promises/A+ compliant implementation of Promises in JavaScript
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
build
src
.gitignore
LICENSE
README.md
package.json
test.js
webpack.config.js

README.md

Promises/A+ logo

Promise.js

This is the Promises/A+ compliant implementation of Promises.

API

Creating promises

var p = new Promise();

or

var p = new Promise(function (resolve, reject) {
    // ...
});

Exposed methods

  • resolve(value)
  • reject(reason)
  • then(onFulfilled, onRejected)
  • done(onFulfilled, onRejected)