(
cls, impl: "Union[None, str, Type[Configurable]]", **kwargs: Any
)
| 170 | |
| 171 | @classmethod |
| 172 | def configure( |
| 173 | cls, impl: "Union[None, str, Type[Configurable]]", **kwargs: Any |
| 174 | ) -> None: |
| 175 | from tornado.platform.asyncio import BaseAsyncIOLoop |
| 176 | |
| 177 | if isinstance(impl, str): |
| 178 | impl = import_object(impl) |
| 179 | if isinstance(impl, type) and not issubclass(impl, BaseAsyncIOLoop): |
| 180 | raise RuntimeError("only AsyncIOLoop is allowed when asyncio is available") |
| 181 | super().configure(impl, **kwargs) |
| 182 | |
| 183 | @staticmethod |
| 184 | def instance() -> "IOLoop": |