[issue33544] Asyncio Event.wait() is a hold over from before awaitable, and should be awaitable
Hrvoje Nikšić
report at bugs.python.org
Wed May 16 15:30:00 EDT 2018
Hrvoje Nikšić <hniksic at gmail.com> added the comment:
Deprecating Event.wait would be incorrect because Event was designed to mimic the threading.Event class which has a (blocking) wait() method[1].
Supporting `await event` is still worthwhile, though.
[1]
https://docs.python.org/2/library/threading.html#threading.Event.wait
----------
nosy: +hniksic
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33544>
_______________________________________
More information about the Python-bugs-list
mailing list