How to pause execution in Ruby?

Is there a delay or pause function or anything of the like?

···

--
Posted via http://www.ruby-forum.com/.

require 'proc/wait3'

Process.pause

Doesn't work on Windows.

Regards,

Dan

···

On Jan 20, 8:33 pm, Keith Carter <kmarplecar...@yahoo.com> wrote:

Is there a delay or pause function or anything of the like?

Is there a delay or pause function or anything of the like?

  sleep 1.5 # seconds

Regards,

Bill

···

From: "Keith Carter" <kmarplecarter@yahoo.com>

Thread.sleep will probably do what you want.

--Jeremy

···

On Jan 20, 2008 10:33 PM, Keith Carter <kmarplecarter@yahoo.com> wrote:

Is there a delay or pause function or anything of the like?
--
Posted via http://www.ruby-forum.com/\.

--
http://www.jeremymcanally.com/

My books:
Ruby in Practice

My free Ruby e-book

My blogs:

http://www.rubyinpractice.com/