MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT-LLM / put

Method put

tensorrt_llm/llmapi/utils.py:465–471  ·  view source on GitHub ↗
(self, item)

Source from the content-addressed store, hash-verified

463 self._aq.notify()
464
465 def put(self, item) -> None:
466 self._aq.put_nowait(item)
467
468 if self._loop.is_running():
469 asyncio.run_coroutine_threadsafe(self._notify(), self._loop)
470 else:
471 raise AsyncQueue.EventLoopShutdownError()
472
473 def put_nowait(self, item) -> None:
474 """ Put item without notify the event. """

Callers

nothing calls this directly

Calls 2

_notifyMethod · 0.95
put_nowaitMethod · 0.45

Tested by

no test coverage detected