Nanotechnology Promises Much
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

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

47,694

version

1.0.1

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability