Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/dabeaz/python-cookbook
/ PrintActor
Class
PrintActor
src/12/defining_an_actor_task/actor.py:61–65 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
59
60
# Sample ActorTask
61
class
PrintActor(Actor):
62
def
run(self):
63
while
True:
64
msg = self.recv()
65
print(
"Got:"
, msg)
66
67
if
__name__ ==
'__main__'
:
68
# Sample use
Callers
1
actor.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected