Created
March 9, 2012 02:32
-
-
Save emberian/2004684 to your computer and use it in GitHub Desktop.
CPS in JS
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
var result = async asyncCall(foo); | |
doStuff.whatever(result); |
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
asyncCall(foo, function(result) { | |
doStuff.whatever(result); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment