追加の引数またはパラメータをに渡すことは可能ですか?async.EachSeries
メソッドのシグネチャは次のとおりです。EachSeries(arr, iterator, callback)
そして私はメール受信者をメールテンプレート非同期とマージする方法を持っています
var mergeTemplate = function(template,recipients,callback){
async.EachSeries(recipients,processMails,callback);
};
var processMails = function(template,singleRecipient,callback){
//...this would contain an async.waterfall of tasks to process the mail
async.waterfall(tasks,callback);
}
「ダーティ」なグローバル変数を使用せずにテンプレートをパススルーする必要があります...これは可能ですか?可能であれば、どのように実行しますか?
ありがとう