title: Creating an infinite loop
body: <p>I'm trying to create an infinite loop, where a block of code will be executed forever.</p>
  <p>All loop documentation I have found warns against creating an infinite loop, but no examples of a working one.</p>
  <p>If I have a block of code:</p>
  <pre><code>{ puts &quot;foo&quot;  
    puts &quot;bar&quot;  
    sleep 300 }
  </code></pre>
  <p>How would I go about running this block forever?</p>