MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / exec_on_timeout

Method exec_on_timeout

_pydevd_bundle/pydevd_timeout.py:120–136  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers 1

process_handlesMethod · 0.80

Calls 2

exceptionMethod · 0.80
on_timeoutFunction · 0.50

Tested by

no test coverage detected