def install_asyncio() -> None:
"""Install tornado's loop to asyncio."""
try:
from tornado.ioloop import IOLoop
from tornado.platform.asyncio import AsyncIOMainLoop
if not IOLoop.initialized():
AsyncIOMainLoop().install()
except ImportError:
pass
评论列表
文章目录