gpromise
gpromise copied to clipboard
A small promise library implementing the Promises/A+ spec

GPromise
A small promise library implementing the Promises/A+ spec (Version 1.1).
Basic Usage
const examplePromise = new GPromise(resolve => {
setTimeout(() => {
resolve('done')
}, 1000)
})
// logs `done` after 1s
examplePromise.then(result => {
console.log(result)
})