MCPcopy Index your code
hub / github.com/NVIDIA/TensorRT-LLM / _async_to_sync

Method _async_to_sync

tensorrt_llm/executor/rpc/rpc_client.py:556–559  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

554 nvtx_mark_debug(f"RPC.future.{name}", color="blue", category="RPC")
555
556 def _async_to_sync():
557 future = asyncio.run_coroutine_threadsafe(
558 self._call_async(name, *args, **kwargs), self._loop)
559 return future.result()
560
561 return self._executor.submit(_async_to_sync)
562

Callers

nothing calls this directly

Calls 2

_call_asyncMethod · 0.95
resultMethod · 0.45

Tested by

no test coverage detected