MCPcopy Create free account
hub / github.com/tox-dev/filelock / interrupt

Function interrupt

tasks/capabilities.py:178–181  ·  view source on GitHub ↗
(frame: FrameType, event: str, _arg: Unused)

Source from the content-addressed store, hash-verified

176 entries: Final[count[int]] = count()
177
178 def interrupt(frame: FrameType, event: str, _arg: Unused) -> None:
179 # The first entry starts the generator; every later one resumes it.
180 if event == "call" and frame.f_code is probe.__code__ and next(entries):
181 raise KeyboardInterrupt
182
183 previous = sys.getprofile()
184 sys.setprofile(interrupt)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected