When should we use asyncio.get_running_loop() vs asyncio.get_event_loop()?

后端 未结 0 1698
南方客
南方客 2020-12-09 03:28

I have seen running a blocking code using

loop = asyncio.get_running_loop()
await loop.run_in_executor(None, blockingfunc)

And



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