Getting below error when i try to use async/await with NodeJs 4.x. Any issue with the below sample code or should i use alternate ?
async function main ()
try async.js http://caolan.github.io/async/
var async = require("async");
async.map(['file1','file2','file3'], fs.stat, function(err, results) {
// results is now an array of stats for each file
});
async.parallel([
function(callback) { ... },
function(callback) { ... }
], function(err, results) {
// optional callback
});