Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
convenient wrapper for lazy promises
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
README.md
component.json
index.js
package.json

README.md

lazify

convenient wrapper for lazy promises

Installation

$ npm install lazify

or

$ component install nathan7/lazify

Example

var req = lazify(function() {
  return xhr('http://blah.com')
})

API

lazify :: (-> Promise a) -> LazyPromise a

Takes a function that returns a promise and returns a lazy promise. The edge case of returning a value or throwing an error is handled.

License

MIT

Something went wrong with that request. Please try again.