mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Closes #18927: Lock.acquire only accepts -1 or positive values for timeout.
This commit is contained in:
parent
242e6a0bce
commit
b19ef1846c
1 changed files with 1 additions and 1 deletions
|
@ -378,7 +378,7 @@ All methods are executed atomically.
|
|||
|
||||
When invoked with the floating-point *timeout* argument set to a positive
|
||||
value, block for at most the number of seconds specified by *timeout*
|
||||
and as long as the lock cannot be acquired. A negative *timeout* argument
|
||||
and as long as the lock cannot be acquired. A *timeout* argument of ``-1``
|
||||
specifies an unbounded wait. It is forbidden to specify a *timeout*
|
||||
when *blocking* is false.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue