0.0.1 • Published 11 years ago

pangako v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
11 years ago

pangako

A bare bones Javascript Promises/A+ spec implementation.

This implementation passes the Promises/A+ Compliance Test Suite.

Usage

This example will create a deferred object which contains a promise and two callbacks, resolve and reject, which can be called to settle the promise. A timeout is then set to resolve the promise after 10 seconds. then is called on the promise to set a callback which will execute when the promise is fulfilled.

Using pangako.defer

Using pangako.Promise

Testing - Running the compliance test suite

To test the installation, run:

Run:

Results should be: