2.59K 浏览
0

Task任务完成,如何退出,释放资源?

async def demo():
    quote = api.get_quote("SHFE.cu1812")
    async with api.register_update_notify(quote) as update_chan:
        async for _ in update_chan:
            print(quote.last_price)

胜利 李 编辑问题 2020年4月10日