MCPcopy Create free account
hub / github.com/Noumena-Network/code / _main

Function _main

src/tools/REPLTool/kernel.py:171–181  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

169
170
171async def _main():
172 exec_queue = asyncio.Queue()
173 reader = asyncio.create_task(_read_stdin(exec_queue))
174 try:
175 while True:
176 message = await exec_queue.get()
177 if message is None:
178 return
179 await _handle_exec(message)
180 finally:
181 reader.cancel()
182
183
184if __name__ == "__main__":

Callers 1

kernel.pyFile · 0.70

Calls 4

cancelMethod · 0.80
_read_stdinFunction · 0.70
_handle_execFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected