Matt Rasband added the comment:

I attempted this myself, it seemed to have too many costs associated for the 
stdlib and is something easy enough to wrap myself when I need this 
functionality with explicit semantics on how to "stop" the queue (using an 
`object()` sentinel). My implementation is flawed as the sentinel is global, 
instead of per queue instance, if you decide to use this at all.

See https://github.com/python/asyncio/pull/445

----------
nosy: +Matt Rasband

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28777>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to