不调用callback
@gitchs 那不就卡死在这个函数中了?
@lonso 标题上貌似说了是除了calback(err)之外— —。。
我怎么记得是return跳出,单用callback不跳?@。@不记得了。
@hades return是跳出这个函数,但是async要求至少要调用一次callback,否则程序就卡主不动了貌似……还没来得及翻源码,上述只是臆测。。。
@friskit-china JS的特点不可能卡死在那里
这个是输出,后面是测试代码 I never run callback function I will run callback function You will see me You will see me
===================== var async = require(‘async’);
async.series([ function(callback){console.log(“I never run callback function”);}, function(callback){console.log(“You will never see me”);}, function(callback){console.log(“You will never see me either”);}]);
async.series([ function(callback){console.log(“I will run callback function”);callback();}, function(callback){console.log(“You will see me”);callback();}, function(callback){console.log(“You will see me”);callback();}]);