Commit af0e9eae authored by Denis Bilenko's avatar Denis Bilenko

concurrent_download.py: use wait() instead of joinall()

parent 8407cdcf
...@@ -21,4 +21,4 @@ def print_head(url): ...@@ -21,4 +21,4 @@ def print_head(url):
jobs = [gevent.spawn(print_head, url) for url in urls] jobs = [gevent.spawn(print_head, url) for url in urls]
gevent.joinall(jobs) gevent.wait(jobs)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment