Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
155
my_queue = Queue()
156
157
def
consumer():
158
print(
"Consumer waiting"
)
159
my_queue.get()
# Runs after put() below
160
print(
"Consumer done"
)
161
162
thread = Thread(target=consumer)
163
thread.start()
Callers
nothing calls this directly
Calls
1
get
Method · 0.45
Tested by
no test coverage detected