Message226899
> 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. |
|
Date |
User |
Action |
Args |
2014-09-15 07:15:50 | vstinner | set | recipients:
+ vstinner, gvanrossum, yselivanov |
2014-09-15 07:15:50 | vstinner | set | messageid: <1410765350.38.0.815482861443.issue21998@psf.upfronthosting.co.za> |
2014-09-15 07:15:50 | vstinner | link | issue21998 messages |
2014-09-15 07:15:50 | vstinner | create | |
|