callback-flow:为 node.js 链接异步块的优雅方式

时间:2024-07-15 17:42:23
【文件属性】:

文件名称:callback-flow:为 node.js 链接异步块的优雅方式

文件大小:7KB

文件格式:ZIP

更新时间:2024-07-15 17:42:23

JavaScript

基本 var Flow = require ( "callback-flow" ) ; new Flow ( function ( next ) { next ( null , "hello" , "world" ) ; } ) . then ( function ( res1 , res2 , next ) { next ( null , res1 + " " + res2 ) ; } ) . on ( "finish" , function ( res ) { console . log ( res ) ; } ) . run ( ) ;


【文件预览】:
callback-flow-master
----.jshintrc(334B)
----.gitignore(587B)
----README.MD(374B)
----package.json(538B)
----.travis.yml(93B)
----Gruntfile.js(463B)
----LICENSE(7KB)
----lib()
--------callback-flow.js(2KB)
----test()
--------basic.js(2KB)
--------test-input.txt(12B)

网友评论