MCPcopy Create free account
hub / github.com/agent0ai/agent-zero / _start

Method _start

helpers/defer.py:28–35  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

26 return cls._instances[thread_name]
27
28 def _start(self):
29 if not hasattr(self, "loop") or not self.loop:
30 self.loop = asyncio.new_event_loop()
31 if not hasattr(self, "thread") or not self.thread:
32 self.thread = threading.Thread(
33 target=self._run_event_loop, daemon=True, name=self.thread_name
34 )
35 self.thread.start()
36
37 def _run_event_loop(self):
38 if not self.loop:

Callers 2

__init__Method · 0.95
run_coroutineMethod · 0.95

Calls 1

startMethod · 0.45

Tested by

no test coverage detected