Skip to content

gh-96471: Add threading queue shutdown #104225

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

Closed
wants to merge 3 commits into from

Conversation

EpicWink
Copy link
Contributor

@EpicWink EpicWink commented May 6, 2023

Threading-only changes from #102499 (on top of #96474)


📚 Documentation preview 📚: https://cpython-previews--104225.org.readthedocs.build/

@EpicWink
Copy link
Contributor Author

EpicWink commented May 6, 2023

@willingc ready for review

@EpicWink EpicWink force-pushed the threading-queue-shutdown branch from fa1debe to ddeb9b6 Compare May 6, 2023 04:27
EpicWink and others added 2 commits May 6, 2023 14:34
* Include raised exception in docstrings
* Handle queue shutdown in task_done and join
* Factor out queue-state checks and updates to methods
* Logic fixes in qsize, get and shutdown
* Don't set unfinished_tasks to 0 on immediate shutdown
* Updated tests
* Document feature added in 3.13
@EpicWink EpicWink force-pushed the threading-queue-shutdown branch from ddeb9b6 to 9c2971b Compare May 6, 2023 04:38
@gvanrossum
Copy link
Member

Closing in favor of gh-104750.

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

Successfully merging this pull request may close these issues.

4 participants