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

Allow metadata to be set on the fut returned from submit #72

Open
cjrh opened this issue Jul 6, 2023 · 1 comment
Open

Allow metadata to be set on the fut returned from submit #72

cjrh opened this issue Jul 6, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@cjrh
Copy link
Owner

cjrh commented Jul 6, 2023

Such metadata would be handy in callbacks. The API could look something like this:

f = pool.submit(work)
f.set_metadata(<dict>)
@cjrh cjrh added the enhancement New feature or request label Jul 6, 2023
@cjrh
Copy link
Owner Author

cjrh commented Jul 6, 2023

Hmm, actually the user can just do this. Assign to a new attribute on f. No extra support is needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant