Skip to content

Commit 525f7c2

Browse files
miss-islingtonbeauxqkumaraditya303
authored
[3.14] pythongh-114827: clarify threading.Event.wait timeout behavior (pythonGH-114834) (python#140100)
Co-authored-by: Doug Hoskisson <[email protected]> Co-authored-by: Kumar Aditya <[email protected]>
1 parent 1c55b91 commit 525f7c2

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)