【发布时间】:2019-10-18 02:42:04
【问题描述】:
我正在开发一个主要由服务组成的应用程序,这些服务是具有自定义运行循环的线程。
其中一项服务需要产生子流程,我真的不明白它是否有效。官方documentation 模棱两可。即它在同一部分中同时显示asyncio supports running subprocesses from different threads 和An event loop must run in the main thread。
如果事件循环必须在主线程中运行,怎么可能从不同的线程运行子进程?
【问题讨论】:
标签: python python-3.x python-asyncio