asyncio RuntimeError: There is no current event loop in thread 'ThreadPoolExecutor-0_0

前端 未结 0 431
别那么骄傲
别那么骄傲 2021-01-31 22:17

This code leads to the error in the title:

def _cancel(tasks):
    {t.cancel() for t in tasks if not t.done()}
    return a         


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