Node.js has one thing like this async modules.
Does anyone know - how to organize something like this :
async.map(['file1','file2','file3'], fs.stat, function(err, results){
// results is now an array of stats for each file
});
Currently I'm using a Play Framework/Scala
fs.statin this case? - Patryk ĆwiekFuturewithAction.asynccould be solution here. I am not sure in what context you want to use this. - ŁukaszA => Future[B]? OrA => B? The second one doesn't really make much sense in this context, but if you already have async processing for every element, you can simply doFuture.sequence(files.map(fn)).map(results => ...)- Patryk Ćwiek