Skip to content
/ promize Public

A tiny Promises/A+ implementation for learning

License

Notifications You must be signed in to change notification settings

nobdy/promize

Repository files navigation

Promises/A+ logo

Promise

In order to facilitate the understanding of the principle of Promise, I wrote a Promise object to realize the function of Promise.

travis lic imp act

Run test cases

yarn
yarn test

or

npm install
npm run test

Basic usage

Promise.resolve('complete').then(r => {
    console.log(`the status is `, r)
})

Version history

2.0.0

On the basis of version 1.0.0, it is clearer to organize Promise from function into class.

1.0.0

Achieved the Promises/A+ 1.1.0 standard and passed the test cases.

Reference documents

  1. Promises/A+

  2. Conformant Implementations

About

A tiny Promises/A+ implementation for learning

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published