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