Skip to content
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