Skip to content

Instantly share code, notes, and snippets.

@LCamel
Created October 8, 2016 15:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LCamel/cc047873d26aca74b30303d8d1f62222 to your computer and use it in GitHub Desktop.
Save LCamel/cc047873d26aca74b30303d8d1f62222 to your computer and use it in GitHub Desktop.
var async = require('async');
(function () {
var tmp;
async.series(
[
(cb) => { console.log("1"); tmp = "foo"; cb(null, "result1"); },
(cb) => { console.log("2"); cb(null, tmp + " result2"); },
],
(err, results) => { console.log("result: " + results); }
)
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment