/gpromise

A small promise library implementing the Promises/A+ spec

Primary LanguageJavaScript

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