lua-users home
lua-l archive

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


> -----Original Message-----
> From: lua-l-bounces@lists.lua.org [mailto:lua-l-bounces@lists.lua.org] On
> Behalf Of Daurnimator
> Sent: dinsdag 14 mei 2013 16:40
> To: Lua mailing list
> Subject: Re: Break out of program in interpreter
> 
> On 14 May 2013 10:36, Jose Torre-Bueno <jtorrebueno@cox.net> wrote:
> > Is there any way to pause a lua program for less than one second?
> >
> > Thanks to your help I can write a loop like this:
> >
> 
> luasocket can be used (it's often installed)
> 
>     require "socket".sleep(0.5)
> 

Obviously better than my script using a fake socket timeout. Dunno how I missed that...

Thijs