在这些情况下,使用 BaseEventLoop.run_in_executor 在后台线程或进程中运行代码通常更有意义。如果您的任务是CPU绑定的,则 ProcessPoolExecutor 将是更好的选择, ...
確定! 回上一頁