Need private packages and team management tools?Check out npm Teams »

trivial-deferred

1.0.1 • Public • Published

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)

Keywords

none

Install

npm i trivial-deferred

DownloadsWeekly Downloads

58,145

Version

1.0.1

License

ISC

Last publish

Collaborators

  • avatar