Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dabeaz/python-cookbook
/ run
Method
run
src/12/defining_an_actor_task/actor.py:62–65 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
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
nothing calls this directly
Calls
1
recv
Method · 0.45
Tested by
no test coverage detected