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

lib/alarm.pir - Lua Alarm Library

The library exports a single function: alarm(s,[f]).
See original on http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#lalarm/

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
|  |   |