Called by libcurl to schedule a timeout.
(self, msecs: int)
| 124 | self._fds[fd] = ioloop_event |
| 125 | |
| 126 | def _set_timeout(self, msecs: int) -> None: |
| 127 | """Called by libcurl to schedule a timeout.""" |
| 128 | if self._timeout is not None: |
| 129 | self.io_loop.remove_timeout(self._timeout) |
| 130 | self._timeout = self.io_loop.add_timeout( |
| 131 | self.io_loop.time() + msecs / 1000.0, self._handle_timeout |
| 132 | ) |
| 133 | |
| 134 | def _handle_events(self, fd: int, events: int) -> None: |
| 135 | """Called by IOLoop when there is activity on one of our |
no test coverage detected