Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dabeaz-course/python-mastery
/ printer
Function
printer
Solutions/8_6/cofollow.py:34–37 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
32
# Sample coroutine
33
@consumer
34
def
printer():
35
while
True:
36
item =
yield
from
receive(object)
37
print(item)
38
39
# Example use.
40
if
__name__ ==
'__main__'
:
Callers
1
cofollow.py
File · 0.70
Calls
1
receive
Function · 0.85
Tested by
no test coverage detected