MCPcopy Create free account
hub / github.com/VITA-MLLM/VITA-Audio / get

Method get

web/queue.py:113–127  ·  view source on GitHub ↗

Retrieve an item from the queue in a thread-safe manner. Parameters: - None Returns: - any or None: The retrieved item if the queue is not empty, otherwise None.

(self)

Source from the content-addressed store, hash-verified

111 self._queue.put(item)
112
113 def get(self):
114 """
115 Retrieve an item from the queue in a thread-safe manner.
116
117 Parameters:
118 - None
119
120 Returns:
121 - any or None: The retrieved item if the queue is not empty, otherwise None.
122 """
123 with self._lock:
124 if not self._queue.empty():
125 return self._queue.get()
126 else:
127 return None
128
129 def clear(self):
130 """

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected