Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ loop
Function
loop
example_code/item_103.py:112–115 ·
view source on GitHub ↗
(queue, keep_running)
Source
from the content-addressed store, hash-verified
110
111
print(
"Example 5"
)
112
def
loop(queue, keep_running):
113
while
keep_running():
114
produce_emails(queue)
115
consume_one_email(queue)
116
117
118
def
make_test_end():
Callers
1
item_103.py
File · 0.85
Calls
2
produce_emails
Function · 0.85
consume_one_email
Function · 0.85
Tested by
no test coverage detected