Skip to content

Instantly share code, notes, and snippets.

@reinaldorauch
Created August 8, 2014 17:52
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 reinaldorauch/b91eb8f585d6750f64d2 to your computer and use it in GitHub Desktop.
Save reinaldorauch/b91eb8f585d6750f64d2 to your computer and use it in GitHub Desktop.
async callback
function doSomeStuff(cb) {
// Some Stuff
return cb();
}
doSomeStuff(function onSomeStuffHandler() {
console.log('Some Stuff ended');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment