Skip to content

Instantly share code, notes, and snippets.

@jlipps
Last active December 10, 2015 21:48
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 jlipps/4498052 to your computer and use it in GitHub Desktop.
Save jlipps/4498052 to your computer and use it in GitHub Desktop.
initialize everything!
function initializeEverything(cb) {
host_info.create(function(err, h) {
other_module.create(function(err, m) {
yet_another_module.create(function(err, y) {
cb(err, h, m, y);
});
});
});
}
initializeEverything(function(err, h, m, y) {
// do everything
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment