STINNER Victor added the comment:

> Is there a use case for sharing an event loop across forking?

I don't know if asyncio must have a builtin support for this use case. The 
minimum is to document the behaviour, or maybe even suggest a recipe to support 
it.

For example, an event loop of asyncio is not thread-safe and we don't want to 
support this use case. But I wrote a short documentation with code snippets to 
show how to workaround this issue:
https://docs.python.org/dev/library/asyncio-dev.html#concurrency-and-multithreading

We need a similar section to explain how to use asyncio with the os.fork() 
function and the multiprocesing module.

----------

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

Reply via email to