(self)
| 118 | self.disposed = False |
| 119 | |
| 120 | def exec_on_timeout(self): |
| 121 | # Note: lock should already be obtained when executing this function. |
| 122 | kwargs = self.kwargs |
| 123 | on_timeout = self.on_timeout |
| 124 | |
| 125 | if not self.disposed: |
| 126 | self.disposed = True |
| 127 | self.kwargs = None |
| 128 | self.on_timeout = None |
| 129 | |
| 130 | try: |
| 131 | if _DEBUG: |
| 132 | pydev_log.critical("pydevd_timeout: Calling on timeout: %s with kwargs: %s", on_timeout, kwargs) |
| 133 | |
| 134 | on_timeout(**kwargs) |
| 135 | except Exception: |
| 136 | pydev_log.exception("pydevd_timeout: Exception on callback timeout.") |
| 137 | |
| 138 | def __enter__(self): |
| 139 | pass |
no test coverage detected