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

Method _set_timeout

python/python3/tornado/curl_httpclient.py:134–140  ·  view source on GitHub ↗

Called by libcurl to schedule a timeout.

(self, msecs: int)

Source from the content-addressed store, hash-verified

132 self._fds[fd] = ioloop_event
133
134 def _set_timeout(self, msecs: int) -> None:
135 """Called by libcurl to schedule a timeout."""
136 if self._timeout is not None:
137 self.io_loop.remove_timeout(self._timeout)
138 self._timeout = self.io_loop.add_timeout(
139 self.io_loop.time() + msecs / 1000.0, self._handle_timeout
140 )
141
142 def _handle_events(self, fd: int, events: int) -> None:
143 """Called by IOLoop when there is activity on one of our

Callers 2

fetch_implMethod · 0.95
_handle_timeoutMethod · 0.95

Calls 3

add_timeoutMethod · 0.80
timeMethod · 0.80
remove_timeoutMethod · 0.45

Tested by

no test coverage detected