Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save goooooouwa/6445371 to your computer and use it in GitHub Desktop.
Save goooooouwa/6445371 to your computer and use it in GitHub Desktop.
# synchronous workflow:
success();
failure();
synchronousFunction(){
do something
if return TRUE, call success()
else call failure()
}
# asynchronous workflow:
success();
failure();
asynchronousFunction( success, failure){
do something
WAIT...
if response OK, call success
else call failure
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment