MCPcopy 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
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

nothing calls this directly

Calls 1

recvMethod · 0.45

Tested by

no test coverage detected