3 ms·
You can also use grequests (originally a part of requests). It has a grequests.map() function, that I use exactly for this scenario.
by bfwi 13y ago
You can also use grequests (originally a part of requests). It has a grequests.map() function, that I use exactly for this scenario.
- madjar 13y agoI used that at some point, but I tend to prefer the explicit yield of asyncio to the implicit context change of greenlets. (This blog post is a good explanation of that: https://glyph.twistedmatrix.com/2014/02/unyielding.html https://glyph.twistedmatrix.com/2014/02/unyielding.html)