]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-74028: add `buffersize` parameter to `concurrent.futures.Executor.map` for lazier...
authorEnzo Bonnal <bonnal.enzo.dev@gmail.com>
Thu, 13 Mar 2025 10:57:53 +0000 (10:57 +0000)
committerGitHub <noreply@github.com>
Thu, 13 Mar 2025 10:57:53 +0000 (11:57 +0100)
commita005835f699b5ba44beb8c856db1f62454522e1e
treefe33d488cbec96defc8772f7f821d1f133dad92c
parente98d321bef16fa78f289c79bd332bf7a1cbf11b5
gh-74028: add `buffersize` parameter to `concurrent.futures.Executor.map` for lazier behavior (#125663)

`concurrent.futures.Executor.map` now supports limiting the number of submitted
tasks whose results have not yet been yielded via the new `buffersize` parameter.

---------

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Doc/library/concurrent.futures.rst
Doc/whatsnew/3.14.rst
Lib/concurrent/futures/_base.py
Lib/concurrent/futures/process.py
Lib/test/test_concurrent_futures/executor.py
Misc/NEWS.d/next/Library/2024-10-18-10-27-54.gh-issue-74028.4d4vVD.rst [new file with mode: 0644]