Skip to content

Instantly share code, notes, and snippets.

@indradhanush
Created June 16, 2014 08:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save indradhanush/e4c565561a9fce577eed to your computer and use it in GitHub Desktop.
Save indradhanush/e4c565561a9fce577eed to your computer and use it in GitHub Desktop.
Asynchronous request response
def get_sync_info(source_id):
"""
Gets the sync information.
"""
socket.send_multipart([req_type, source_id])
# Should return the response to the above request.
# Some callback should return the response probably.
return response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment