@@ -40,11 +40,14 @@ Executor Objects
4040 future = executor.submit(pow, 323, 1235)
4141 print(future.result())
4242
43- .. method :: map(fn, *iterables, timeout=None, chunksize=1)
43+ .. method :: map(fn, *iterables, timeout=None, chunksize=1, buffersize=None )
4444
4545 Similar to :func: `map(fn, *iterables) <map> ` except:
4646
47- * the *iterables * are collected immediately rather than lazily;
47+ * The *iterables * are collected immediately rather than lazily, unless a
48+ *buffersize * is specified to limit the number of submitted tasks whose
49+ results have not yet been yielded. If the buffer is full, iteration over
50+ the *iterables * pauses until a result is yielded from the buffer.
4851
4952 * *fn * is executed asynchronously and several calls to
5053 *fn * may be made concurrently.
@@ -68,7 +71,10 @@ Executor Objects
6871 *chunksize * has no effect.
6972
7073 .. versionchanged :: 3.5
71- Added the *chunksize * argument.
74+ Added the *chunksize * parameter.
75+
76+ .. versionchanged :: 3.14
77+ Added the *buffersize * parameter.
7278
7379 .. method :: shutdown(wait=True, *, cancel_futures=False)
7480
@@ -425,7 +431,7 @@ to a :class:`ProcessPoolExecutor` will result in deadlock.
425431 After calling this method the caller should no longer submit tasks to the
426432 executor.
427433
428- .. versionadded :: next
434+ .. versionadded :: 3.14
429435
430436 .. method :: kill_workers()
431437
@@ -437,7 +443,7 @@ to a :class:`ProcessPoolExecutor` will result in deadlock.
437443 After calling this method the caller should no longer submit tasks to the
438444 executor.
439445
440- .. versionadded :: next
446+ .. versionadded :: 3.14
441447
442448.. _processpoolexecutor-example :
443449
0 commit comments