Skip to content
Closed
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
6 changes: 5 additions & 1 deletion Doc/library/multiprocessing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2125,6 +2125,10 @@ with the :class:`Pool` class.
the process pool as separate tasks. The (approximate) size of these
chunks can be specified by setting *chunksize* to a positive integer.

Note that it may cause high memory usage for very long iterables. Consider
using :meth:`imap` or :meth:`imap_unordered` with explicit *chunksize*
option for better efficiency.

.. method:: map_async(func, iterable[, chunksize[, callback[, error_callback]]])

A variant of the :meth:`.map` method which returns a result object.
Expand All @@ -2143,7 +2147,7 @@ with the :class:`Pool` class.

.. method:: imap(func, iterable[, chunksize])

A lazier version of :meth:`map`.
A lazier version of :meth:`.map`.

The *chunksize* argument is the same as the one used by the :meth:`.map`
method. For very long iterables using a large value for *chunksize* can
Expand Down