8000 gh-131466: `concurrent.futures.Executor.map`: avoid temporarily exceeding `buffersize` while collecting the next result by ebonnal · Pull Request #131467 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-131466: concurrent.futures.Executor.map: avoid temporarily exceeding buffersize while collecting the next result #131467

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open
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
access awaited result via _result attribute
  • Loading branch information
ebonnal committed Mar 23, 2025
commit 2a2119ecd5ce096e7f03885708bd1ceea10f4b6b
2 changes: 1 addition & 1 deletion Lib/concurrent/futures/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ def result_iterator():
fs.appendleft(executor.submit(fn, *args))

# yield the awaited result
yield fs.pop().result()
yield fs.pop()._result
finally:
for future in fs:
future.cancel()
Expand Down
Loading
0