Skip to content

Instantly share code, notes, and snippets.

@samhstn
Created January 9, 2017 22:46
Show Gist options
  • Save samhstn/dd4d739626eaf7317e299462bbc060d1 to your computer and use it in GitHub Desktop.
Save samhstn/dd4d739626eaf7317e299462bbc060d1 to your computer and use it in GitHub Desktop.
const async1 = (cb) => {
cb(true, 'data1');
}
const async2 = (cb) => {
cb(false, 'data2');
}
async1((err, cb) => {
console.log('Errors here: ', err);
async2((err, cb) => {
console.log('No longer an error: ', err);
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment