Timeout
Wait for a simulated time to pass.
Timeout
Bases: Event
Timeout event for sleeping.
Source code in src/asimpy/timeout.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | |
__init__(env, delay)
Construct timeout.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
env
|
Environment
|
simulation environment. |
required |
delay
|
float | int
|
how long to wait. |
required |
Raises:
| Type | Description |
|---|---|
ValueError
|
for invalid |
Source code in src/asimpy/timeout.py
14 15 16 17 18 19 20 21 22 23 24 25 26 27 | |