Skip to content

Instantly share code, notes, and snippets.

@pulse00
Created August 15, 2010 11:57
Show Gist options
  • Save pulse00/525418 to your computer and use it in GitHub Desktop.
Save pulse00/525418 to your computer and use it in GitHub Desktop.
function someSynchronouseCall() {
var data = null;
someAsynchronousCall(function(response) {
data = response.data;
});
// is there some way to wait for the above callback before returning 'data' ?
return data;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment