def install_asyncio() -> None:
"""Ensure that asyncio's io-loop is installed to tornado."""
from tornado.ioloop import IOLoop
from tornado.platform.asyncio import AsyncIOMainLoop
if not IOLoop.initialized():
AsyncIOMainLoop().install()
评论列表
文章目录