-# Copyright (c) 2017-2019. The SimGrid Team. All rights reserved.
+# Copyright (c) 2017-2021. 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 Engine, this_actor
import sys
-from simgrid import *
# This example does not much: It just spans over-polite actor that yield a large amount
# of time before ending.
class Yielder:
- """Main function of the Yielder process"""
+ """Main function of the Yielder actor"""
number_of_yields = 0
def __init__(self, *args):