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

Method poll

tensorrt_llm/executor/utils.py:128–137  ·  view source on GitHub ↗
(self, timeout=None)

Source from the content-addressed store, hash-verified

126 pass
127
128 def poll(self, timeout=None) -> bool:
129 try:
130 # Try to get an item from the queue without blocking
131 item = self.queue.get(timeout=timeout)
132 # If successful, put the item back to not alter the state
133 self.queue.put(item)
134 return True
135 except Empty:
136 # If the queue thread is empty, return False
137 return False
138
139
140class WorkerCommIpcAddrs(NamedTuple):

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
putMethod · 0.45

Tested by

no test coverage detected