[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: lalarm & io:read()?
- From: Petite Abeille <petite.abeille@...>
- Date: Sun, 25 Mar 2012 14:02:29 +0200
Hello,
Trying to use LHF's lalarm [1] library to simulate a little timer of sort.
All good except when used in conjunction with io:read(), in which case the alarm is not triggered until after the read completes.
Is that how it's meant to be? E.g. read() is blocking everything and hoping for an alert is wishful thinking? Or am I missing something?
Thanks in advance.
[1] http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#lalarm
P.S.
Perhaps it would be worthwhile to update lalarm to play well with require(), instead of registering its name globally.