Hi,
I searched a bit for a simple example showing how to simply stop a process, but couldn't find anything clear.
Suppose I have something simple like:
event = simpy.events.Timeout(env, delay=1, value=42*i)
print('now=%d, value=%d' % (env.now, value))env = simpy.Environment()
example_gen = example(env)
p = simpy.events.Process(env, example_gen)
and then run the simulation unilt say 6:
env.run(until=6)
After this point, I simply want to stop this process, so that if I run
env.run()
essentially I expect nothing else to happen (in particular no error being thrown).
How can I achieve this?
Thanks