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

Function _main

rust/py_repl_host/assets/kernel.py:179–189  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

177
178
179async def _main():
180 exec_queue = asyncio.Queue()
181 reader = asyncio.create_task(_read_stdin(exec_queue))
182 try:
183 while True:
184 message = await exec_queue.get()
185 if message is None:
186 return
187 await _handle_exec(message)
188 finally:
189 reader.cancel()
190
191
192if __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