asyncio set_exception fails for a pending task

前端 未结 0 1552
感动是毒
感动是毒 2021-02-08 05:35
import asyncio


async def task_successful():
    pass


if __name__ == \'__main__\':
    loop = asyncio.get_event_loop()
    task = loop.create_task(task_successful())
         


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