How to close the loop if one of the task is completed in asyncio

后端 未结 0 847
独厮守ぢ
独厮守ぢ 2021-01-29 17:34

I have 3 tasks. -

def task_a(): 
    while True:
        file.write()
        asyncio.sleep(10)

def task_b():
    while True:
        file.write()
        asynci         


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