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

Method close

python/python3/tornado/curl_httpclient.py:83–96  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

81 self._multi.remove_handle(dummy_curl_handle)
82
83 def close(self) -> None:
84 self._force_timeout_callback.stop()
85 if self._timeout is not None:
86 self.io_loop.remove_timeout(self._timeout)
87 for curl in self._curls:
88 curl.close()
89 self._multi.close()
90 super().close()
91
92 # Set below properties to None to reduce the reference count of current
93 # instance, because those properties hold some methods of current
94 # instance that will case circular reference.
95 self._force_timeout_callback = None # type: ignore
96 self._multi = None
97
98 def fetch_impl(
99 self, request: HTTPRequest, callback: Callable[[HTTPResponse], None]

Callers 1

_finishMethod · 0.45

Calls 2

stopMethod · 0.45
remove_timeoutMethod · 0.45

Tested by

no test coverage detected