MCPcopy Index your code
hub / github.com/python/cpython / interrupt

Method interrupt

Lib/asyncio/__main__.py:144–151  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

142 loop.call_soon_threadsafe(loop.stop)
143
144 def interrupt(self) -> None:
145 if not CAN_USE_PYREPL:
146 return
147
148 from _pyrepl.simple_interact import _get_reader
149 r = _get_reader()
150 if r.threading_hook is not None:
151 r.threading_hook.add("") # type: ignore
152
153
154if __name__ == '__main__':

Callers 4

__main__.pyFile · 0.45
d3.min.jsFile · 0.45
test_interruptMethod · 0.45

Calls 1

addMethod · 0.45

Tested by 2

test_interruptMethod · 0.36