Skip to content

Conversation

@mistydemeo
Copy link
Contributor

Adding a done callback to an already-done future will always execute the callback immediately; we don't need a redundant attempt at doing the same thing.

https://docs.python.org/3.9/library/concurrent.futures.html?highlight=concurrent#concurrent.futures.Future.add_done_callback

Adding a done callback to an already-done future will always
execute the callback immediately; we don't need a redundant attempt
at doing the same thing.
@mistydemeo mistydemeo merged commit f7dd1e7 into master Jan 9, 2026
3 checks passed
@mistydemeo mistydemeo deleted the misty/rm_redundant_done branch January 9, 2026 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants