Skip to content

Commit 13e9c2d

Browse files
gh-114827: clarify threading.Event.wait timeout behavior (#114834)
Co-authored-by: Kumar Aditya <[email protected]>
1 parent e6102f0 commit 13e9c2d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/threading.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,8 @@ def wait(self, timeout=None):
653653
(or fractions thereof).
654654
655655
This method returns the internal flag on exit, so it will always return
656-
True except if a timeout is given and the operation times out.
656+
``True`` except if a timeout is given and the operation times out, when
657+
it will return ``False``.
657658
658659
"""
659660
with self._cond:

0 commit comments

Comments
 (0)