Skip to content

A small promise library implementing the Promises/A+ spec

Notifications You must be signed in to change notification settings

gaoxiaoliangz/gpromise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A small promise library implementing the Promises/A+ spec

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published