Skip to content
Myr

The async.send method wasn't really doing anything useful. It was just calling the r.send() method of the Request object 'r'. It took an optional kwarg pools, and assigned it to r._pools which isn't used by anything. This situation was eaither broken or not fully implemented yet. I modified async.map to call r.send rather than send(r) and then modified async.send to actually make use of the pool that it is passed.

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

authored by Ben · committed by Ben · parent 97be9ee · Browse files · 1 file+0 added−1 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+0 added−1 removed

  • other:+0 added−1 removed

1 file+0 added−1 removed

modified:requests/async.py-1 removed
50 unmodified lines
51 specified this method blocks. Pools are useful because you can specify size52 and can hence limit concurrency."""5354 if pool != None:5555 return pool.spawn(r.send)5657 return gevent.spawn(r.send)58
34 unmodified lines