STINNER Victor added the comment: Proof-of-concept of patched drain() to support multiple waiters.
I don't see any strong reason to not allow two coroutines to wait on drain() in parallel? I'm too lazy to write a full patch with unit tests, doc changed, etc. I started with a PoC to discuss the solution. ---------- keywords: +patch Added file: http://bugs.python.org/file46763/drain_multiple_waiters.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29930> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com