es6-deferred

1.3.0 • Public • Published

Usage

var Deferred = require('es6-deferred');
var d = new Deferred();

d.promise

The promise.

d.resolve(value)

Resolves the promise with the given value.

d.reject(error)

Rejects the promise with the given error.

d.then(onFulfilled, onRejected)

Appends a fulfillment and rejection handler to the promise.

d.catch(onRejected)

Appends a rejection handler to the promise.

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.3.0
    1,234
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.3.0
    1,234
  • 1.2.1
    0
  • 1.2.0
    0
  • 1.1.0
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i es6-deferred

Weekly Downloads

1,234

Version

1.3.0

License

MIT

Last publish

Collaborators

  • seangenabe