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

Add callback parameter to concurrent.futures.Executor.map #74092

Closed
aron-bordin mannequin opened this issue Mar 26, 2017 · 2 comments
Closed

Add callback parameter to concurrent.futures.Executor.map #74092

aron-bordin mannequin opened this issue Mar 26, 2017 · 2 comments
Labels
3.7 (EOL) end of life stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@aron-bordin
Copy link
Mannequin

aron-bordin mannequin commented Mar 26, 2017

BPO 29906
Nosy @aron-bordin, @iritkatriel

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = None
created_at = <Date 2017-03-26.01:18:34.299>
labels = ['3.7', 'type-feature', 'library']
title = 'Add callback parameter to concurrent.futures.Executor.map'
updated_at = <Date 2022-03-19.20:15:50.938>
user = 'https://github.com/aron-bordin'

bugs.python.org fields:

activity = <Date 2022-03-19.20:15:50.938>
actor = 'iritkatriel'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2017-03-26.01:18:34.299>
creator = 'aron.bordin'
dependencies = []
files = []
hgrepos = []
issue_num = 29906
keywords = []
message_count = 2.0
messages = ['290502', '415567']
nosy_count = 2.0
nosy_names = ['aron.bordin', 'iritkatriel']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'pending'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue29906'
versions = ['Python 3.7']

@aron-bordin
Copy link
Mannequin Author

aron-bordin mannequin commented Mar 26, 2017

I'm facing some situations where would be helpful to be able to add a default function callback when calling the Executor.map. So, when making calls with this command we could get the executor result easily.

I think that we could provide a callback parameter to the map function, that adds the callable to the future (similar to add_done_callback).

@aron-bordin aron-bordin mannequin added 3.7 (EOL) end of life stdlib Python modules in the Lib dir type-feature A feature request or enhancement labels Mar 26, 2017
@iritkatriel
Copy link
Member

Since nobody followed up on this for 5 years, I would suggest that (if you are still interested in this) you raise this on python-ideas and ideally also implement and submit a patch.

If this is abandoned I will close the issue in a couple of weeks.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.7 (EOL) end of life stdlib Python modules in the Lib dir type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

1 participant