MCPcopy Create free account
hub / github.com/RightNow-AI/autokernel / __init__

Method __init__

kernelbench/bench_kb.py:71–74  ·  view source on GitHub ↗
(self, seconds: float, msg: str = "timeout")

Source from the content-addressed store, hash-verified

69 """Context manager that raises TimeoutError after `seconds`."""
70
71 def __init__(self, seconds: float, msg: str = "timeout"):
72 self.seconds = seconds
73 self.msg = msg
74 self._use_signal = hasattr(signal, "SIGALRM") # Unix only
75
76 def __enter__(self):
77 if self._use_signal:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected