¿Cómo paso un conjunto estándar de parámetros a cada función en una serie async.js?
Dado el siguiente módulo node.js, ¿cómo llamaría a las funciones en la matrizorderedListOfFunctions
pasando cada uno elresponse
¿variable?
var async = require("async");
var one = require("./one.js");
var two = require("./two.js");
module.exports = function (options) {
var orderedListOfFunctions = [
one,
two
];
return function (request, response, next) {
// This is where I'm a bit confused...
async.series(orderedListOfFunctions, function (error, returns) {
console.log(returns);
next();
});
};