0.1.0 • Published 6 years ago

easy-promise v0.1.0

Weekly downloads
24
License
BSD-2-Clause
Repository
github
Last release
6 years ago

easy-promise

Pnly Promises/A+ implementation If you want to make a more powerful Promise class, it is recommended to use the extend-promise extension.

API

  • new Promise
  • Promise.defer
  • Promise.resolve
  • Promise.reject
  • Promise.all
  • .then
  • .catch
  • .finally

Install

npm
npm install easy-promise
bower
bower install easy-promise

Use

//Internal use of process.nextTick
var Ep = require('esay-promise')

//or Use setImmediate ,Used For high concurrency scenarios
var Ep = require('esay-promise/setImmediate')

//or setTimeout , Used for browser projects
var Ep = require('esay-promise/setTimeout')

In the no Promise browser

  • dist/easy-Promise.js (gzip 1.8k)
  • dist/easy-Promise.min.js (gzip 1.2k)
0.1.0

6 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago