对于3.9版本以下,asyncio多线程实现就是,两个函数: run_in_executor 和run_coroutine_threadsafe. 1. 对应两种需求。 一个是主线程,直接新开线程,运行阻塞函数。
確定! 回上一頁