*A lightweighted promise library follow Promise / A+ standards.
I think if you want to build your own promise, the main part is to maintain a state machine, you should know how to transform state between pending, fulfilled and rejected.
Promise/A+
-
H5 rocks promise tutorials(http://www.html5rocks.com/en/tutorials/es6/promises/)
-
Open source Promise/A+ standard(https://promisesaplus.com/)
-
ECMAScript language specification ECMA-262 6th edition promise part(http://people.mozilla.org/~jorendorff/es6-draft.html#sec-promise-objects).
-
How to realize resolve, reject, then base on https://github.com/promises-aplus/promises-spec
-
parallel promise
- Both Browser and Node.js environment.
-
I will use mocha to write some case later.