- for i in range(self.number_of_yields):
- simgrid.yield_()
- simgrid.info("I yielded {:d} times. Goodbye now!".format(self.number_of_yields))
+ for _ in range(self.number_of_yields):
+ this_actor.yield_()
+ this_actor.info("I yielded {:d} times. Goodbye now!".format(
+ self.number_of_yields))
+