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

bpo-29842: Make Executor.map less eager so it handles large/unbounded… #18566

Open
wants to merge 8 commits into
base: main
from

Conversation

@graingert
Copy link
Contributor

@graingert graingert commented Feb 20, 2020

… input iterables appropriately

bugs.python.org/issue29842

bugs.python.org/issue29842

recreate of #707 with conflicts fixed and versionchanged updated to py3.9

/cc @MojoVampire

https://bugs.python.org/issue29842

MojoVampire and others added 8 commits Mar 18, 2017
… input iterables appropriately
…lds no reference to result at the moment it yields

Reduce line lengths to PEP8 limits
…ue-29842
Copy link

@rdarder rdarder left a comment

Hi there! sorry for intruding. I was looking for this feature and decided to try this patch out. Works great! Just found a small issue so I sent you a comment.
Thank you!

except StopIteration:
argsiter = None
else:
fs.append(self.submit(fn, *args))

This comment has been minimized.

@rdarder

rdarder Mar 22, 2021

If the executor has been shut down, this will raise:
cannot schedule new futures after shutdown
But, also the base executor holds no state, so at this level it'll be pretty hard to tell if the executor has been shut down or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants