MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / consumer

Function consumer

example_code/item_070.py:157–160  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

155my_queue = Queue()
156
157def consumer():
158 print("Consumer waiting")
159 my_queue.get() # Runs after put() below
160 print("Consumer done")
161
162thread = Thread(target=consumer)
163thread.start()

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected