1.0.0 • Published 10 years ago

lazy-then v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

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