Skip to content

thenables/lazy-then

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lazy-then

NPM version Build status Test coverage Dependency Status License Downloads Gittip

A promise implementation that resolves lazily, i.e. when .then() or .catch() are executed. Uses either bluebird or the native Promise implementation.

API

LazyPromise( resolve, reject => )

Same as Promise( resolve, reject => ).

LazyPromise.resolve(val)

Same as Promise.resolve(val).

LazyPromise.reject(err)

Same as Promise.reject(err).