Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 471 Bytes

README.md

File metadata and controls

34 lines (22 loc) · 471 Bytes

superlazypromise

Promise made lazy !

Installation

Then install it via npm:

$ npm install --save superlazypromise

Or via bower:

$ bower install --save superlazypromise

Example Usage

const LazyPromise = require('superlazypromise').LazyPromise;

let promise = new LazyPromise((resolve, reject) => {
    // stuff
});
promise.then(/* fn */); // <- promise executed here

License

ISC License. See the LICENSE file.