STINNER Victor added the comment:

"If this usage is not supported (...)"

You can use threads, but access concurrently asyncore/asynchat from different 
threads. You have to build a communicate channel between your threads using 
thread-safe primitive like queue.Queue. asyncio has a builtin support for that: 
loop.call_soon_threadsafe().

Why not using asyncio instead of having to rebuild your own implementation?

----------

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

Reply via email to