1 |
{ The wait function can be used to suspend execution of the current event |
{ The wait function can be used to suspend execution of the current event |
2 |
handler for the given amount of microseconds. Note that execution of an event |
handler for the given amount of microseconds. Note that execution of an event |
3 |
handler might also be automatically suspended by the sampler in case its |
handler might also be automatically suspended by the sampler in case its |
4 |
execution exceeded at certain limit in time. |
execution exceeded a certain limit of time. |
5 |
|
|
6 |
If you script might get suspended for the reasons mentioned above, you should |
If your script might get suspended for the reasons mentioned above, you should |
7 |
be aware that all variables are global variables by default. So after a |
be aware that all variables are global variables by default and all global |
8 |
|
variables are shared with other execution instances of the script. So after a |
9 |
suspended event handler execution is woken up again, the respective global |
suspended event handler execution is woken up again, the respective global |
10 |
variables might not reflect what you wanted them to be, because in the |
variables might not reflect what you wanted them to be, because in the |
11 |
meantime other execution instances of your script might have altered them |
meantime other execution instances of your script might have altered them |