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. Advertisements

  2. require 'proc/wait3'


    Doesn't work on Windows.


    Daniel Berger, Jan 21, 2008
    1. Advertisements

  3. Keith Carter

    Bill Kelly Guest

    sleep 1.5 # seconds


    Bill Kelly, Jan 21, 2008
  4. Jeremy McAnally, Jan 21, 2008
    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.