Skip to content

Commit b19ef18

Browse files
committed
Closes #18927: Lock.acquire only accepts -1 or positive values for timeout.
1 parent 242e6a0 commit b19ef18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/threading.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ All methods are executed atomically.
378378

379379
When invoked with the floating-point *timeout* argument set to a positive
380380
value, block for at most the number of seconds specified by *timeout*
381-
and as long as the lock cannot be acquired. A negative *timeout* argument
381+
and as long as the lock cannot be acquired. A *timeout* argument of ``-1``
382382
specifies an unbounded wait. It is forbidden to specify a *timeout*
383383
when *blocking* is false.
384384

0 commit comments

Comments
 (0)