Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
How to pause execution in Ruby?
Keith Carter
1/21/2008 3:34:00 AM
Is there a delay or pause function or anything of the like?
--
Posted via
http://www.ruby-...
.
3 Answers
Daniel Berger
1/21/2008 3:39:00 AM
0
On Jan 20, 8:33 pm, Keith Carter <kmarplecar...@yahoo.com> 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
Bill Kelly
1/21/2008 3:42:00 AM
0
From: "Keith Carter" <kmarplecarter@yahoo.com>
>
> Is there a delay or pause function or anything of the like?
sleep 1.5 # seconds
Regards,
Bill
Jeremy McAnally
1/21/2008 3:43:00 AM
0
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-...
.
>
>
--
http://www.jeremymca...
My books:
Ruby in Practice
http://www.manning.com...
My free Ruby e-book
http://www.humblelittlerub...
My blogs:
http://www.mrneigh...
http://www.rubyinpra...
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
How to pause execution in Ruby?
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password