lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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.