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

Function produce_emails

example_code/item_103.py:92–99  ·  view source on GitHub ↗
(queue)

Source from the content-addressed store, hash-verified

90
91print("Example 3")
92def produce_emails(queue):
93 while True:
94 try:
95 email = try_receive_email()
96 except NoEmailError:
97 return
98 else:
99 queue.append(email) # Producer
100
101
102print("Example 4")

Callers 1

loopFunction · 0.85

Calls 2

try_receive_emailFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected