is asyncio.to_thread() method different to ThreadPoolExecutor?

前端 未结 0 655
礼貌的吻别
礼貌的吻别 2020-12-16 10:33

I see that asyncio.to_thread() method is been added @python 3.9+, it\'s description says it runs blocking codes on a separate thread to run at once. see example below:

<
相关标签:
回答
  • 消灭零回复
提交回复
热议问题