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

Method notify_many

tensorrt_llm/llmapi/utils.py:484–492  ·  view source on GitHub ↗

Notify the events in the loop.

(loop: asyncio.AbstractEventLoop,
                    queues: List["_SyncQueue"])

Source from the content-addressed store, hash-verified

482
483 @staticmethod
484 def notify_many(loop: asyncio.AbstractEventLoop,
485 queues: List["_SyncQueue"]) -> None:
486 """ Notify the events in the loop. """
487
488 if loop.is_running():
489 asyncio.run_coroutine_threadsafe(
490 _SyncQueue._notify_many(frozenset(queues)), loop)
491 else:
492 raise AsyncQueue.EventLoopShutdownError()
493
494 @property
495 def loop(self) -> asyncio.AbstractEventLoop:

Callers 3

handle_responsesMethod · 0.80
handle_for_workerMethod · 0.80
dispatch_result_taskMethod · 0.80

Calls 1

_notify_manyMethod · 0.80

Tested by

no test coverage detected