lazy-then

1.0.0 • Public • Published

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

/lazy-then/

    Package Sidebar

    Install

    npm i lazy-then

    Weekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • jongleberry