Is suppressing `asyncio.CancelledError` acceptable here?

后端 未结 0 850
孤街浪徒
孤街浪徒 2021-01-28 04:31

Example:

    with suppress(asyncio.CancelledError):
        [await t for t in asyncio.all_tasks(loop=self.loop)
                    


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