0.0.1 • Published 11 years ago
pangako v0.0.1
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:
0.0.1
11 years ago