我想从 in 的瀑布函数链中跳转一个asyncjs
函数nodejs
。
我的代码如下所示:
async.waterfall([
function(next){
if(myBool){
next(null);
}else{
// Bypass the 2nd function
}
},
// I want to bypass this method if myBool is false in the 1st function
function(next){
},
// Always called
function(next){
}
]);
您是否知道不使用 put 的正确方法:
if(!myBool){
return next();
}
在我想绕过的功能中。
谢谢 !