chensenlai 10988628a0 语音房项目初始化 | %!s(int64=5) %!d(string=hai) anos | |
---|---|---|
.. | ||
dist | %!s(int64=5) %!d(string=hai) anos | |
src | %!s(int64=5) %!d(string=hai) anos | |
test | %!s(int64=5) %!d(string=hai) anos | |
.npmignore | %!s(int64=5) %!d(string=hai) anos | |
.travis.yml | %!s(int64=5) %!d(string=hai) anos | |
README.md | %!s(int64=5) %!d(string=hai) anos | |
bower.json | %!s(int64=5) %!d(string=hai) anos | |
browser-source.js | %!s(int64=5) %!d(string=hai) anos | |
gulpfile.js | %!s(int64=5) %!d(string=hai) anos | |
nextTick.js | %!s(int64=5) %!d(string=hai) anos | |
package.json | %!s(int64=5) %!d(string=hai) anos | |
setImmediate.js | %!s(int64=5) %!d(string=hai) anos | |
setTimeout.js | %!s(int64=5) %!d(string=hai) anos |
Pnly Promises/A+ implementation
If you want to make a more powerful Promise
class, it is recommended to use the extend-promise extension.
new Promise
Promise.defer
Promise.resolve
Promise.reject
.then
npm
npm install easy-promise
bower
bower install easy-promise
//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')
dist/easy-Promise.js
(gzip 1.8k)dist/easy-Promise.min.js
(gzip 1.2k)