Created
June 16, 2014 08:05
-
-
Save indradhanush/e4c565561a9fce577eed to your computer and use it in GitHub Desktop.
Asynchronous request response
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
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