Skip to content
Myr

tiny map() refactoring

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Piotr Dobrogost · committed by Piotr Dobrogost · parent 61a0e85 · Browse files · 1 file+2 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−6 removed

  • other:+2 added−6 removed

1 file+2 added−6 removed

modified:requests/async.py+2 added-6 removed
76 unmodified lines
77 """7879 requests = list(requests)8081 if size:82 pool = Pool(size)83 jobs = [pool.spawn(r.send) for r in requests]81 pool = Pool(size) if size else None82 jobs = [send(r, pool) for r in requests]84 else:85 jobs = [gevent.spawn(r.send) for r in requests]86 83 gevent.joinall(jobs)8485 if prefetch:86 [r.response.content for r in requests]
2 unmodified lines