Commit 607f7862 authored by Stefan Scherfke's avatar Stefan Scherfke
Browse files

Fixed the doctest example for simpy.util.start_delayed().

parent 40cb6dae
......@@ -20,13 +20,14 @@ def start_delayed(env, peg, delay):
Just pass it as a first parameter to ``start()``::
>>> from simpy import Environment, simulate
>>> from simpy.util import start_delayed
>>> def pem(env, x):
... print('%s, %s' % (env.now, x))
... yield env.timeout(1)
...
>>> env = Environment()
>>> start_delayed(env, pem(env, 3), 5)
Process(starter)
>>> proc = start_delayed(env, pem(env, 3), 5)
>>> simulate(env)
5, 3
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment