We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc762d7 commit 4e132c4Copy full SHA for 4e132c4
Doc/library/queue.rst
@@ -259,8 +259,9 @@ or terminated immediately.
259
If *immediate* is true, the queue is terminated immediately.
260
The queue is drained to be completely empty. The count of
261
unfinished tasks is reduced by number drained but without calling
262
- :meth:`~Queue.task_done`. That then unblocks all callers of
263
- :meth:`~Queue.join`. In addition, blocked callers of
+ :meth:`~Queue.task_done`. All callers of :meth:`~Queue.join`
+ are unblocked even if the unfinished tasks is more than zero.
264
+ In addition, blocked callers of
265
:meth:`~Queue.get` are unblocked and will raise :exc:`ShutDown`.
266
267
Use caution when using :meth:`~Queue.join` with *immediate* set
0 commit comments