How to pause execution in Ruby?

Discussion in 'Ruby' started by Keith Carter, Jan 21, 2008.

  1. Keith Carter

    Keith Carter Guest

    Is there a delay or pause function or anything of the like?
     
    Keith Carter, Jan 21, 2008
    #1
    1. Advertisements

  2. require 'proc/wait3'

    Process.pause

    Doesn't work on Windows.

    Regards,

    Dan
     
    Daniel Berger, Jan 21, 2008
    #2
    1. Advertisements

  3. Keith Carter

    Bill Kelly Guest


    sleep 1.5 # seconds


    Regards,

    Bill
     
    Bill Kelly, Jan 21, 2008
    #3
  4. Jeremy McAnally, Jan 21, 2008
    #4
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.