in src/functions_framework/request_timeout.py [0:0]
def _raise_exc(self):
ret = ctypes.pythonapi.PyThreadState_SetAsyncExc(
ctypes.c_long(self.target_tid), ctypes.py_object(RequestTimeoutException)
)
if ret == 0:
raise ValueError("Invalid thread ID {}".format(self.target_tid))
elif ret > 1:
ctypes.pythonapi.PyThreadState_SetAsyncExc(
ctypes.c_long(self.target_tid), None
)
raise SystemError("PyThreadState_SetAsyncExc failed")