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