]> AND Public Git Repository - simgrid.git/blobdiff - examples/python/exec-async/exec-async.py
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Martin's suggestions
[simgrid.git] / examples / python / exec-async / exec-async.py
index b27ccb82167bfd78ffe10e1541d002c338e20582..07585437a36e6640a4f2046c4e832a105414dc05 100644 (file)
@@ -1,14 +1,21 @@
-# Copyright (c) 2018-2021. The SimGrid Team. All rights reserved.
+# Copyright (c) 2018-2022. The SimGrid Team. All rights reserved.
 #
 # This program is free software you can redistribute it and/or modify it
 # under the terms of the license (GNU LGPL) which comes with this package.
 
-from simgrid import Actor, Engine, Host, this_actor
+"""
+Usage: exec-async.py platform_file [other parameters]
+"""
+
 import sys
+from simgrid import Actor, Engine, Host, this_actor
 
 
 class Waiter:
-    """ This actor simply waits for its task completion after starting it. That's exactly equivalent to synchronous execution. """
+    """
+    This actor simply waits for its task completion after starting it.
+    That's exactly equivalent to synchronous execution.
+    """
 
     def __call__(self):
         computation_amount = this_actor.get_host().speed