MCPcopy Create free account
hub / github.com/LMCache/LMCache / run_loop

Method run_loop

benchmarks/rag/utils.py:100–103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

98 cls._loop = asyncio.new_event_loop()
99
100 def run_loop():
101 asyncio.set_event_loop(cls._loop)
102 cls._logger.debug("Starting the asyncio loop")
103 cls._loop.run_forever()
104
105 cls._thread = threading.Thread(target=run_loop)
106 cls._thread.start()

Callers

nothing calls this directly

Calls 2

debugMethod · 0.80
run_foreverMethod · 0.80

Tested by

no test coverage detected