next2

1.0.1 • Public • Published

next

伪同步方式写异步回调

安装

npm install next2

好吧。。名字又被用了。。。

用法

var $ = require('next2');
 
$().next(function(){
    console.log('1');
    this.done(1, 2);
}).next(function(a, b){
    console.log(a, b);
    this.done(3);
}).final(function(n){
    console.log(3);
});

License

MIT

东西写的渣渣,日后优化更新

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i next2

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • wallax