MCPcopy Index your code
hub / github.com/dabeaz/python-cookbook / run

Method run

src/12/defining_an_actor_task/actor.py:53–58  ·  view source on GitHub ↗

Run method to be implemented by the user

(self)

Source from the content-addressed store, hash-verified

51 self._terminated.wait()
52
53 def run(self):
54 '''
55 Run method to be implemented by the user
56 '''
57 while True:
58 msg = self.recv()
59
60# Sample ActorTask
61class PrintActor(Actor):

Callers 2

_bootstrapMethod · 0.95
mainFunction · 0.45

Calls 1

recvMethod · 0.95

Tested by 1

mainFunction · 0.36