MCPcopy Index your code
hub / github.com/InternLM/lmdeploy / __init__

Method __init__

lmdeploy/pipeline.py:540–547  ·  view source on GitHub ↗
(self, daemon=False)

Source from the content-addressed store, hash-verified

538class _EventLoopThread:
539
540 def __init__(self, daemon=False):
541 fut = concurrent.futures.Future()
542 self.thread = Thread(target=partial(self._thread_entry, fut), daemon=daemon)
543 self.thread.start()
544 self.loop: asyncio.AbstractEventLoop = fut.result()
545 self.closed = False
546 if daemon:
547 atexit.register(self.close)
548
549 def _thread_entry(self, fut):
550 loop = asyncio.new_event_loop()

Callers

nothing calls this directly

Calls 1

startMethod · 0.45

Tested by

no test coverage detected