MCPcopy Index your code
hub / github.com/pywebio/PyWebIO / get

Method get

pywebio/utils.py:206–211  ·  view source on GitHub ↗

获取队列全部数据

(self)

Source from the content-addressed store, hash-verified

204 """
205
206 def get(self):
207 """获取队列全部数据"""
208 try:
209 return super().get(block=False)
210 except queue.Empty:
211 return []
212
213 def wait_empty(self, timeout=None):
214 """等待队列内的数据被取走"""

Callers 15

targetFunction · 0.45
testFunction · 0.45
testFunction · 0.45
testFunction · 0.45
testFunction · 0.45
testFunction · 0.45
testFunction · 0.45
testFunction · 0.45
run_testFunction · 0.45
testFunction · 0.45
testFunction · 0.45

Calls

no outgoing calls

Tested by 2

targetFunction · 0.36
testFunction · 0.36