MCPcopy Create free account
hub / github.com/EasyIME/PIME / configure

Method configure

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

Source from the content-addressed store, hash-verified

164
165 @classmethod
166 def configure(
167 cls, impl: "Union[None, str, Type[Configurable]]", **kwargs: Any
168 ) -> None:
169 from tornado.platform.asyncio import BaseAsyncIOLoop
170
171 if isinstance(impl, str):
172 impl = import_object(impl)
173 if isinstance(impl, type) and not issubclass(impl, BaseAsyncIOLoop):
174 raise RuntimeError("only AsyncIOLoop is allowed when asyncio is available")
175 super(IOLoop, cls).configure(impl, **kwargs)
176
177 @staticmethod
178 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