1
rpcs = []
for url in urls:
rpc = urlfetch.create_rpc(deadline=5.0)
urlfetch.make_fetch_call(rpc, url)
rpcs.append(rpc)
while len(rpcs) > 0:
rpc = apiproxy_stub_map.UserRPC.wait_any(rpcs)
res = rpc.get_result()
if res.status_code == 200:
...... do something with result
rpcs.remove(rpc)
如何確定從什麼網址收到響應?如何從異步請求App引擎中的RPC對象獲取響應URL?