I would like to create a timer using Lua, in a way that I could specify a callback function to be triggered after X seconds have passed.
What would be the best way t
Try lalarm, here: http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/
lalarm
Example (based on src/test.lua):
-- alarm([secs,[func]]) alarm(1, function() print(2) end); print(1)
Output:
1 2