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

Method GetOrStartLoop

benchmarks/rag/utils.py:129–133  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

127
128 @classmethod
129 def GetOrStartLoop(cls) -> asyncio.AbstractEventLoop:
130 if cls._loop is None:
131 cls.StartLoop()
132 assert cls._loop is not None, "Loop is not started"
133 return cls._loop
134
135
136class PromptBuildMethodType(Enum):

Callers 1

__init__Method · 0.45

Calls 1

StartLoopMethod · 0.45

Tested by

no test coverage detected