Gracefully shutdown inside a event loop

“`
try:
loop.run_forever()
finally:
loop.run_until_complete(loop.shutdown_asyncgens())
loop.close()
“`

About 逸飞

后端工程师

发表评论

电子邮件地址不会被公开。 必填项已用*标注