Update example in docs

Update the first example in the Connections so that it corresponds to the second example.
pull/7325/head
VojtechH 10 months ago committed by Asif Saif Uddin
parent 8423c6743e
commit c925f38021
  1. 6
      docs/userguide/calling.rst

@ -673,13 +673,13 @@ publisher:
.. code-block:: python
numbers = [(2, 2), (4, 4), (8, 8), (16, 16)]
results = []
with add.app.pool.acquire(block=True) as connection:
with add.get_publisher(connection) as publisher:
try:
for args in numbers:
res = add.apply_async((2, 2), publisher=publisher)
for i, j in numbers:
res = add.apply_async((i, j), publisher=publisher)
results.append(res)
print([res.get() for res in results])

Loading…
Cancel
Save