MCPcopy
hub / github.com/tornadoweb/tornado / configure

Method configure

tornado/ioloop.py:172–181  ·  view source on GitHub ↗
(
        cls, impl: "Union[None, str, Type[Configurable]]", **kwargs: Any
    )

Source from the content-addressed store, hash-verified

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":

Callers 10

curl_httpclient.pyFile · 0.45
mainFunction · 0.45
test_config_classMethod · 0.45
test_config_strMethod · 0.45
test_config_argsMethod · 0.45
test_max_clientsMethod · 0.45

Calls 1

import_objectFunction · 0.90

Tested by 8

mainFunction · 0.36
test_config_classMethod · 0.36
test_config_strMethod · 0.36
test_config_argsMethod · 0.36
test_max_clientsMethod · 0.36