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

Method _async_clients

tornado/httpclient.py:192–196  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

190
191 @classmethod
192 def _async_clients(cls) -> Dict[IOLoop, "AsyncHTTPClient"]:
193 attr_name = "_async_client_dict_" + cls.__name__
194 if not hasattr(cls, attr_name):
195 setattr(cls, attr_name, weakref.WeakKeyDictionary())
196 return getattr(cls, attr_name)
197
198 def __new__(cls, force_instance: bool = False, **kwargs: Any) -> "AsyncHTTPClient":
199 io_loop = IOLoop.current()

Callers 1

__new__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected