MCPcopy
hub / github.com/towhee-io/towhee / get

Method get

towhee/runtime/data_queue.py:108–121  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

106 return True
107
108 def get(self) -> Optional[List]:
109 with self._not_empty:
110 while self._size <= 0 and not self._sealed:
111 self._not_empty.wait()
112
113 if self._size <= 0:
114 return None
115
116 ret = []
117 for col in self._data:
118 ret.append(col.get())
119 self._size -= 1
120 self._not_full.notify()
121 return ret
122
123 def get_dict(self, cols: List[str] = None) -> Optional[Dict]:
124 data = self.get()

Callers 15

get_dictMethod · 0.95
to_listMethod · 0.95
test_diff_sizeMethod · 0.95
test_diff_sizeMethod · 0.95
test_multithreadMethod · 0.95
test_diff_sizeMethod · 0.95
test_multithreadMethod · 0.95
test_multithreadMethod · 0.95
test_schema_coverMethod · 0.95
test_multithreadMethod · 0.95
test_callableMethod · 0.95

Calls

no outgoing calls

Tested by 15

test_diff_sizeMethod · 0.76
test_diff_sizeMethod · 0.76
test_multithreadMethod · 0.76
test_diff_sizeMethod · 0.76
test_multithreadMethod · 0.76
test_multithreadMethod · 0.76
test_schema_coverMethod · 0.76
test_multithreadMethod · 0.76
test_callableMethod · 0.76
test_show_tracerMethod · 0.36
test_get_tracerMethod · 0.36