Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
team-simpy
simpy
Commits
607f7862
Commit
607f7862
authored
Jul 03, 2013
by
Stefan Scherfke
Browse files
Fixed the doctest example for simpy.util.start_delayed().
parent
40cb6dae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
simpy/util.py
simpy/util.py
+3
-2
No files found.
simpy/util.py
View file @
607f7862
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment