Skip to content
Myr

Merge pull request #287 from sharat87/patch-2

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

Allow generators or any iterators for async.map

authored by Kenneth Reitz · committed by Kenneth Reitz · parents a77b916, 99b6e35 · Browse files · 1 file+2 added−0 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−0 removed

  • other:+2 added−0 removed

1 file+2 added−0 removed

modified:requests/async.py+2 added
69 unmodified lines
70 :param prefetch: If False, the content will not be downloaded immediately.71 :param size: Specifies the number of requests to make at a time. If None, no throttling occurs.72 """7374 requests = list(requests)7576 if size:77 pool = Pool(size)78 pool.map(send, requests)79 pool.join()
12 unmodified lines