Commit 5c82b1dd authored by Georg Brandl's avatar Georg Brandl

Closes #18927: Lock.acquire only accepts -1 or positive values for timeout.

parent b8f89357
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment