A small promise library implementing the Promises/A+ spec
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.vscode
src
test
.gitignore
README.md
debug-promise.js
package.json

README.md

Promises/A+ logo

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)
})