mirror of
https://github.com/python/cpython.git
synced 2025-09-09 18:32:22 +00:00
[3.13] Fix Queue.shutdown docs for condition to unblock a join (gh-137088) (gh-137102)
This commit is contained in:
parent
d9feec4542
commit
eda613438f
4 changed files with 18 additions and 12 deletions
|
@ -253,9 +253,11 @@ class Queue(mixins._LoopBoundMixin):
|
|||
By default, gets will only raise once the queue is empty. Set
|
||||
'immediate' to True to make gets raise immediately instead.
|
||||
|
||||
All blocked callers of put() and get() will be unblocked. If
|
||||
'immediate', unblock callers of join() regardless of the
|
||||
number of unfinished tasks.
|
||||
All blocked callers of put() and get() will be unblocked.
|
||||
|
||||
If 'immediate', the queue is drained and unfinished tasks
|
||||
is reduced by the number of drained tasks. If unfinished tasks
|
||||
is reduced to zero, callers of Queue.join are unblocked.
|
||||
"""
|
||||
self._is_shutdown = True
|
||||
if immediate:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue