mirror of
https://github.com/python/cpython.git
synced 2026-04-22 03:41:08 +00:00
Add note to Queue.get() docs about block=True (GH-2223) (GH-12538)
(cherry picked from commit 713a8ae792)
Co-authored-by: Stephen Rosen <sirosen@globus.org>
This commit is contained in:
parent
fa27870992
commit
f3c5535f63
1 changed files with 5 additions and 0 deletions
|
|
@ -152,6 +152,11 @@ provide the public methods described below.
|
|||
Otherwise (*block* is false), return an item if one is immediately available,
|
||||
else raise the :exc:`Empty` exception (*timeout* is ignored in that case).
|
||||
|
||||
Prior to 3.0 on POSIX systems, and for all versions on Windows, if
|
||||
*block* is true and *timeout* is ``None``, this operation goes into
|
||||
an uninterruptible wait on an underlying lock. This means that no exceptions
|
||||
can occur, and in particular a SIGINT will not trigger a :exc:`KeyboardInterrupt`.
|
||||
|
||||
|
||||
.. method:: Queue.get_nowait()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue