| parrotcode: Lua Alarm Library | |
| Contents | Language Implementations | Lua |

lib/alarm.pir - Lua Alarm Library

The library exports a single function: alarm(s,[f]).

alarm (s, [f])f after s seconds have elapsed.
This is done only once.
If you want f to be called every s seconds,
call alarm(s) inside f.
Francois Perrad
|
|
|