mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
#1674032: return value of flag from Event.wait(). OKed by Guido.
This commit is contained in:
parent
1d7d5325be
commit
ef660e8e50
3 changed files with 12 additions and 4 deletions
|
@ -391,6 +391,7 @@ class _Event(_Verbose):
|
|||
try:
|
||||
if not self.__flag:
|
||||
self.__cond.wait(timeout)
|
||||
return self.__flag
|
||||
finally:
|
||||
self.__cond.release()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue