Skip to content

Fix docs for Queue.shutdown #137028

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

Merged
merged 14 commits into from
Jul 24, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update asyncio docstring
  • Loading branch information
rhettinger committed Jul 24, 2025
commit 6740c3f808d89a49ac0cf51917637545c6fd8b9d
4 changes: 2 additions & 2 deletions Lib/asyncio/queues.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,8 @@ def shutdown(self, immediate=False):
'immediate' to True to make gets raise immediately instead.

All blocked callers of put() and get() will be unblocked. If
'immediate', a task is marked as done for each item remaining in
the queue, which may unblock callers of join().
'immediate', unblock callers of join() regardless of the
number of unfinished tasks.
"""
self._is_shutdown = True
if immediate:
Expand Down