Merge branch 'master' into develop

This commit is contained in:
Kenneth Reitz
2011-10-22 18:17:04 -04:00
2 changed files with 5 additions and 3 deletions
+1
View File
@@ -46,3 +46,4 @@ Patches and Suggestions
- Josselin Jacquard
- Travis N. Vaught
- Fredrik Möllerstrand
- Daniel Hengeveld
+4 -3
View File
@@ -69,9 +69,10 @@ We can build a list of ``Request`` objects easily::
rs = [async.get(u) for u in urls]
Now we have a list of ``Request`` objects, ready to be sent. We could
send them one at a time with ``Request.send()``, but that would take a while.
Instead, we'll send them all at the same time with ``async.map()``::
Now we have a list of ``Request`` objects, ready to be sent. We could send them
one at a time with ``Request.send()``, but that would take a while. Instead,
we'll send them all at the same time with ``async.map()``. Using ``async.map()``
will also guarantee execution of the ``response`` hook, described below. ::
>>> async.map(rs)
[<Response [200]>, <Response [200]>, <Response [200]>, <Response [200]>]