You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 25, 2023. It is now read-only.
Use case: wait for the first of several urls to complete. E.g.
futures = [ctx.urlfetch(u) for u in urls]
while futures:
result = yield tasklets.first_available(futures)
if result.status_code == 200:
raise tasklets.Return(result.content)
futures = [f for f in futures
if not f.done() or f.get_result() is not result]
Hm, the API should make the awkward removal of the selected Future unnecessary
as well.
Original issue reported on code.google.com by guido@google.com on 13 Jan 2012 at 12:26
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
guido@google.com
on 13 Jan 2012 at 12:26The text was updated successfully, but these errors were encountered: