How to pause execution in Ruby?

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

On Jan 20, 8:33 pm, Keith C. [email protected] wrote:

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

require ‘proc/wait3’

Process.pause

Doesn’t work on Windows.

Regards,

Dan

From: “Keith C.” [email protected]

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

sleep 1.5 # seconds

Regards,

Bill

Thread.sleep will probably do what you want.

–Jeremy

On Jan 20, 2008 10:33 PM, Keith C. [email protected] 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
http://www.humblelittlerubybook.com/

My blogs:
http://www.mrneighborly.com/
http://www.rubyinpractice.com/

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs