foo(function (err, foosult) { bar(function (err, secsult) { /* you now have both functions ran in-order */ })); });