Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Doc improvement in this example
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Mon, 14 Jan 2019 10:57:11 +0000 (11:57 +0100)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Mon, 14 Jan 2019 20:05:18 +0000 (21:05 +0100)
examples/python/actor-create/actor-create.py

index 3f43906..4bb1d52 100644 (file)
@@ -63,6 +63,8 @@ class Sender:
         self.msg = msg
         self.mbox = mbox
 
+    # Actors that are created as object will execute their __call__ method.
+    # So, the following constitutes the main function of the Sender actor.
     def __call__(self):
         this_actor.info("Hello s4u, I have something to send")
         mailbox = Mailbox.by_name(self.mbox)