Skip to content

Commit 203610d

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 2695844 commit 203610d

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
@@ -660,7 +660,8 @@ def wait(self, timeout=None):
660660
(or fractions thereof).
661661
662662
This method returns the internal flag on exit, so it will always return
663-
True except if a timeout is given and the operation times out.
663+
``True`` except if a timeout is given and the operation times out, when
664+
it will return ``False``.
664665
665666
"""
666667
with self._cond:

0 commit comments

Comments
 (0)