summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-10-28 09:03:20 (GMT)
committerGeorg Brandl <georg@python.org>2010-10-28 09:03:20 (GMT)
commitb9a439175451903ab77c71e5b2020dbd1671a77e (patch)
tree05f4e3a27501d29451a57b753c75da6e3e3f9794 /Doc
parentcbb9421347c97b5a443b260118931962783d4efc (diff)
downloadcpython-b9a439175451903ab77c71e5b2020dbd1671a77e.zip
cpython-b9a439175451903ab77c71e5b2020dbd1671a77e.tar.gz
cpython-b9a439175451903ab77c71e5b2020dbd1671a77e.tar.bz2
#10218: return timeout status from Condition.wait, mirroring other primitives' behavior.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/threading.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/threading.rst b/Doc/library/threading.rst
index 3e2e1e3..7c8f709 100644
--- a/Doc/library/threading.rst
+++ b/Doc/library/threading.rst
@@ -574,6 +574,12 @@ needs to wake up one consumer thread.
interface is then used to restore the recursion level when the lock is
reacquired.
+ The return value is ``True`` unless a given *timeout* expired, in which
+ case it is ``False``.
+
+ .. versionchanged:: 3.2
+ Previously, the method always returned ``None``.
+
.. method:: notify()
Wake up a thread waiting on this condition, if any. If the calling thread