Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Doc/library/concurrent.futures.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,22 +39,22 @@ Executor Objects
future = executor.submit(pow, 323, 1235)
print(future.result())

.. method:: map(func, *iterables, timeout=None, chunksize=1)
.. method:: map(fn, *iterables, timeout=None, chunksize=1)

Similar to :func:`map(func, *iterables) <map>` except:
Similar to :func:`map(fn, *iterables) <map>` except:

* the *iterables* are collected immediately rather than lazily;

* *func* is executed asynchronously and several calls to
*func* may be made concurrently.
* *fn* is executed asynchronously and several calls to
*fn* may be made concurrently.

The returned iterator raises a :exc:`TimeoutError`
if :meth:`~iterator.__next__` is called and the result isn't available
after *timeout* seconds from the original call to :meth:`Executor.map`.
*timeout* can be an int or a float. If *timeout* is not specified or
``None``, there is no limit to the wait time.

If a *func* call raises an exception, then that exception will be
If a *fn* call raises an exception, then that exception will be
raised when its value is retrieved from the iterator.

When using :class:`ProcessPoolExecutor`, this method chops *iterables*
Expand Down