I'm not sure how to do this in Python, and specifically in Pythonista - I want to make 4 asynchronous (and concurrent) requests and parse the responses of each of them ( assign each to a specific variable). Is there a concept of a callback in Python?
Pseudo code:
(
async_requests.get('http://google.com', google_callback)
async_requests.get('http://bing.com', bing_callback)
async_requests.get('http://yahoo.com', yahoo_callback)
async_requests.get('http://facebook.com', facebook_callback)