request(source_url).pipe(async.series([
function() {
fs.createWriteStream(path_for_downloads + path.basename(source_url));
},
function() {
done(null);
}
]);
);
它等待未闭合的括号...
... );
...
这有效:
async.series([
function() {
fs.createWriteStream(path_for_downloads + path.basename(source_url));
},
function() {
done(null);
}
]);