【文件属性】:
文件名称:flowcontrol:NodeJS 的另一个流控制库
文件大小:2KB
文件格式:ZIP
更新时间:2021-06-19 11:42:39
JavaScript
用于 NodeJS 的微型流控制库
只有 3 个有用的功能:
任务列表(项目,功能,回调,选择)
任务映射(项目,功能,回调,选择)
任务链(项目,功能,回调,选择)
如何使用
他们都执行一个功能func元素阵列上items ,并调用callback(results) ,当他们完成:
var items = [ obj1 , obj2 , obj3 , objn ] ;
function func ( obj , done ) { //some long async task
//do something on obj
done ( null , obj ) ; //when the procedure is completed with no error
//or done(null,obj); //when the procedur
【文件预览】:
flowcontrol-master
----README.md(1KB)
----flowcontrol.js(5KB)