MCPcopy Create free account
hub / github.com/OpenManus/OpenManus-RL / raise_timeout

Function raise_timeout

openmanus_rl/tools/python_code_generator/tool.py:31–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29 if is_windows_os():
30 # Windows timeout using threading.Timer
31 def raise_timeout():
32 raise TimeoutException("Code execution timed out")
33 timer = threading.Timer(seconds, raise_timeout)
34 timer.start()
35 try:

Callers

nothing calls this directly

Calls 1

TimeoutExceptionClass · 0.85

Tested by

no test coverage detected