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