MCPcopy Index your code
hub / github.com/RustPython/RustPython / interrupt

Method interrupt

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

Source from the content-addressed store, hash-verified

134 loop.call_soon_threadsafe(loop.stop)
135
136 def interrupt(self) -> None:
137 if not CAN_USE_PYREPL:
138 return
139
140 from _pyrepl.simple_interact import _get_reader
141 r = _get_reader()
142 if r.threading_hook is not None:
143 r.threading_hook.add("") # type: ignore
144
145
146if __name__ == '__main__':

Callers 3

__main__.pyFile · 0.45
test_interruptMethod · 0.45

Calls 1

addMethod · 0.45

Tested by 2

test_interruptMethod · 0.36