Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Add prefetch info to docstrings
  • Loading branch information
MojoVampire committed May 6, 2019
commit 8394e3480eb9fbb5200836174024d75581a03b22
2 changes: 2 additions & 0 deletions Lib/concurrent/futures/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,8 @@ def map(self, fn, *iterables, timeout=None, chunksize=1, prefetch=None):
before being passed to a child process. This argument is only
used by ProcessPoolExecutor; it is ignored by
ThreadPoolExecutor.
prefetch: The number of chunks to queue beyond the number of
workers on the executor. If None, a reasonable default is used.

Returns:
An iterator equivalent to: map(func, *iterables) but the calls may
Expand Down
2 changes: 2 additions & 0 deletions Lib/concurrent/futures/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,8 @@ def map(self, fn, *iterables, timeout=None, chunksize=1, prefetch=None):
chunksize: If greater than one, the iterables will be chopped into
chunks of size chunksize and submitted to the process pool.
If set to one, the items in the list will be sent one at a time.
prefetch: The number of chunks to queue beyond the number of
workers on the executor. If None, a reasonable default is used.

Returns:
An iterator equivalent to: map(func, *iterables) but the calls may
Expand Down