gh-114827: clarify threading.Event.wait timeout behavior (#114834)
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
This commit is contained in:
@@ -653,7 +653,8 @@ class Event:
|
|||||||
(or fractions thereof).
|
(or fractions thereof).
|
||||||
|
|
||||||
This method returns the internal flag on exit, so it will always return
|
This method returns the internal flag on exit, so it will always return
|
||||||
True except if a timeout is given and the operation times out.
|
``True`` except if a timeout is given and the operation times out, when
|
||||||
|
it will return ``False``.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
with self._cond:
|
with self._cond:
|
||||||
|
|||||||
Reference in New Issue
Block a user