MCPcopy Create free account
hub / github.com/SqueezeAILab/TinyAgent / empty_queue

Function empty_queue

run_tiny_agent_server.py:37–44  ·  view source on GitHub ↗
(q: asyncio.Queue)

Source from the content-addressed store, hash-verified

35
36
37def empty_queue(q: asyncio.Queue) -> None:
38 while not q.empty():
39 try:
40 q.get_nowait()
41 q.task_done()
42 except asyncio.QueueEmpty:
43 # Handle the case where the queue is already empty
44 break
45
46
47class TinyAgentRequest(BaseModel):

Callers 1

execute_commandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected