擅长:python、mysql、java
<p>线程池就是你想要的。aioprocessing提供了一些多处理的异步功能,但是它使用了您所建议的线程。如果没有公开真正异步多处理的方法,我建议对python提出一个问题。在</p>
<p><a href="https://github.com/dano/aioprocessing" rel="nofollow noreferrer">https://github.com/dano/aioprocessing</a></p>
<blockquote>
<p>In most cases, this library makes blocking calls to multiprocessing methods asynchronous by executing the call in a ThreadPoolExecutor</p>
</blockquote>