Created
January 9, 2017 22:46
-
-
Save samhstn/dd4d739626eaf7317e299462bbc060d1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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