Skip to content

Instantly share code, notes, and snippets.

@emberian
Created March 9, 2012 02:32
Show Gist options
  • Save emberian/2004684 to your computer and use it in GitHub Desktop.
Save emberian/2004684 to your computer and use it in GitHub Desktop.
CPS in JS
var result = async asyncCall(foo);
doStuff.whatever(result);
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