Skip to content
This repository has been archived by the owner on Mar 17, 2019. It is now read-only.

Comandeer/LazyPromise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LazyPromise Build Status Code Climate

What is it?

It's a subclass of native ES6 Promise object, which evaluates only when then is called. It's written primarily for node.js, but should also run in browser.

Usage

const LazyPromise = require('lazy-promise');

let promise = new LazyPromise(function(resolve, reject)
{
	resolve('ok');
});

promise.then(function(answer)
{
	console.log('Everything is ' + answer);
});

About

LazyPromise for node.js

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published