lua-users home
lua-l archive

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

On Fri, Mar 21, 2014 at 3:06 PM, Rena <> wrote:
> I think LuaSocket only has sleep()? No timer event or such. That would be
> difficult to do in Lua because of no threading; you'd have to have an event
> loop.

I believe that with inproc communication and a sufficiently
lightweight message passing scheme, spooling a remote thread to act as
your event timer is not unreasonable. If you need many of them, you
could have a service with a pool of threads, etc.