Skip to content
Myr

Allow generators or any iterators for async.map

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

authored by Shrikant Sharat Kandula · committed by Shrikant Sharat Kandula · parent 9d8d1d1 · 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