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

Method run_coroutine

helpers/defer.py:70–74  ·  view source on GitHub ↗
(self, coro)

Source from the content-addressed store, hash-verified

68 self.thread = None
69
70 def run_coroutine(self, coro):
71 self._start()
72 if not self.loop:
73 raise RuntimeError("Event loop is not initialized")
74 return asyncio.run_coroutine_threadsafe(coro, self.loop)
75
76
77@dataclass

Callers 1

_start_taskMethod · 0.80

Calls 1

_startMethod · 0.95

Tested by

no test coverage detected