MCPcopy Create free account
hub / github.com/ali-vilab/TeaCache / execute_method

Method execute_method

videosys/core/mp_utils.py:251–254  ·  view source on GitHub ↗
(self, method: str, *args, **kwargs)

Source from the content-addressed store, hash-verified

249 raise ChildProcessError("worker died") from e
250
251 def execute_method(self, method: str, *args, **kwargs):
252 future: ResultFuture = ResultFuture()
253 self._enqueue_task(future, method, args, kwargs)
254 return future
255
256 async def execute_method_async(self, method: str, *args, **kwargs):
257 future = asyncio.get_running_loop().create_future()

Callers 1

_run_workersMethod · 0.80

Calls 2

_enqueue_taskMethod · 0.95
ResultFutureClass · 0.85

Tested by

no test coverage detected