Skip to content

Commit ca3a2d7

Browse files
beauxqkumaraditya303
authored andcommitted
pythongh-114827: clarify threading.Event.wait timeout behavior (pythonGH-114834)
(cherry picked from commit 13e9c2d) Co-authored-by: Doug Hoskisson <[email protected]> Co-authored-by: Kumar Aditya <[email protected]>
1 parent 08c9a14 commit ca3a2d7

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
@@ -650,7 +650,8 @@ def wait(self, timeout=None):
650650
(or fractions thereof).
651651
652652
This method returns the internal flag on exit, so it will always return
653-
True except if a timeout is given and the operation times out.
653+
``True`` except if a timeout is given and the operation times out, when
654+
it will return ``False``.
654655
655656
"""
656657
with self._cond:

0 commit comments

Comments
 (0)