Skip to content

Commit

Permalink
rephrase docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
ebonnal committed Oct 25, 2024
1 parent be419ed commit e28a0f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
7 changes: 3 additions & 4 deletions Lib/concurrent/futures/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,10 +586,9 @@ def map(self, fn, *iterables, timeout=None, chunksize=1, buffersize=None):
before being passed to a child process. This argument is only
used by ProcessPoolExecutor; it is ignored by
ThreadPoolExecutor.
buffersize: The maximum number of results that can be buffered
before being yielded. If the buffer is full, the iteration over
iterables is paused until a result is yielded from the
buffer.
buffersize: The number of results that can be buffered before being
yielded. If the buffer is full, the iteration over iterables
is paused until a result is yielded from the buffer.
Returns:
An iterator equivalent to: map(func, *iterables) but the calls may
Expand Down
7 changes: 3 additions & 4 deletions Lib/concurrent/futures/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -816,10 +816,9 @@ def map(self, fn, *iterables, timeout=None, chunksize=1, buffersize=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.
buffersize: The maximum number of result chunks that can be buffered
before being yielded. If the buffer is full, the iteration over
iterables is paused until a result chunk is yielded from the
buffer.
buffersize: The number of result chunks that can be buffered before
being yielded. If the buffer is full, the iteration over iterables
is paused until a result chunk is yielded from the buffer.
Returns:
An iterator equivalent to: map(func, *iterables) but the calls may
Expand Down

0 comments on commit e28a0f0

Please sign in to comment.