Name Last Update
..
.npmignore Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
index.js Loading commit data...
package.json Loading commit data...
test.js Loading commit data...

trivial-deferred

The most dead-simple trivial Deferred implementation

Uses bluebird if available, otherwise native promises.

USAGE

var Deferred = require('trivial-deferred')
var d = new Deferred
// promise is d.promise
// to make the promise reject, do d.reject(error)
// to make the promise resolve, do d.resolve(value)