Skip to content

Commit cdbd7c3

Browse files
committed
mention chunksize in ProcessPoolExecutor's buffersize docstring
1 parent 49382a4 commit cdbd7c3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Lib/concurrent/futures/_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ def map(self, fn, *iterables, timeout=None, chunksize=1, buffersize=None):
588588
ThreadPoolExecutor.
589589
buffersize: The maximum number of results that can be buffered
590590
before being yielded. If the buffer is full, the iteration over
591-
iterables is paused until an element is yielded from the
591+
iterables is paused until a result is yielded from the
592592
buffer.
593593
594594
Returns:

Lib/concurrent/futures/process.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -824,9 +824,9 @@ def map(self, fn, *iterables, timeout=None, chunksize=1, buffersize=None):
824824
chunksize: If greater than one, the iterables will be chopped into
825825
chunks of size chunksize and submitted to the process pool.
826826
If set to one, the items in the list will be sent one at a time.
827-
buffersize: The maximum number of results that can be buffered
827+
buffersize: The maximum number of result chunks that can be buffered
828828
before being yielded. If the buffer is full, the iteration over
829-
iterables is paused until an element is yielded from the
829+
iterables is paused until a result chunk is yielded from the
830830
buffer.
831831
832832
Returns:

0 commit comments

Comments
 (0)