[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RE: Break out of program in interpreter
- From: Thijs Schreijer <thijs@...>
- Date: Tue, 14 May 2013 16:03:00 +0000
> -----Original Message-----
> From: email@example.com [mailto:firstname.lastname@example.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 <email@example.com> 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...