Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Python: Add Comm.wait_any
[simgrid.git] / examples / python / async-waitall / async-waitall.py
index ea7e73e..46cd50c 100644 (file)
@@ -9,7 +9,7 @@ from simgrid import *
 # This example shows how to block on the completion of a set of communications.
 #
 # As for the other asynchronous examples, the sender initiate all the messages it wants to send and
-# pack the resulting simgrid::s4u::CommPtr objects in a vector. All messages thus occurs concurrently.
+# pack the resulting simgrid.Comm objects in a list. All messages thus occur concurrently.
 #
 # The sender then blocks until all ongoing communication terminate, using simgrid.Comm.wait_all()
 
@@ -51,7 +51,7 @@ class Sender:
         this_actor.info("Done dispatching all messages")
 
         # Now that all message exchanges were initiated, wait for their completion in one single call
-        Comm.waitall(pending_comms)
+        Comm.wait_all(pending_comms)
 
         this_actor.info("Goodbye now!")