MCPcopy 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
61class PrintActor(Actor):
62 def run(self):
63 while True:
64 msg = self.recv()
65 print("Got:", msg)
66
67if __name__ == '__main__':
68 # Sample use

Callers 1

actor.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected