We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab4182b commit 7a1ae46Copy full SHA for 7a1ae46
1 file changed
Lib/concurrent/futures/_base.py
@@ -621,6 +621,7 @@ def map(self, fn, *iterables, timeout=None, chunksize=1, buffersize=None):
621
# collected independently of the result_iterator closure.
622
executor_weakref = weakref.ref(self)
623
624
+ # used by the result_iterator to avoid keeping a reference to the result
625
result = collections.deque(maxlen=1)
626
# Yield must be hidden in closure so that the futures are submitted
627
# before the first iterator value is required.
0 commit comments