0.1.2 • Published 9 years ago
promiseext v0.1.2
Synopsis
PromiseExt is a wrapper on top of promise, which will not execute the promise executor until <>.then() is called.
Code Example
PromiseExt = require('promiseext');
var promise = new PromiseExt(function(resolve, reject) {
resolve({data:'sample'});
});
promise.then(function(resp) {
console.log("in Then");
}, function(resp) {
console.log("in Reject");
});Installation
Step1 :
npm install promiseextStep2 :
PromiseExt = require('promiseext');
// then start using PromiseExt like PromiseLicense
MIT License.