|
|
||
|
On 14 May 2013 12:03, Thijs Schreijer <thijs@thijsschreijer.nl> wrote:
> Obviously better than my script using a fake socket timeout. Dunno how I missed that...
>
Even if you didn't have sleep. You can just use select with empty sets :)
require "socket".select(nil,nil,0.5)