Executes the associated block every @seconds@ seconds in a separate thread.
seconds | Number of seconds to sleep in between runs of &block. |
&block | The block to execute periodically. |
Thread | The thread executing the block periodically. |
:api: private
# File lib/merb-core/bootloader.rb, line 1373 1373: def self.every(seconds, &block) 1374: Thread.new do 1375: loop do 1376: sleep( seconds ) 1377: yield 1378: end 1379: Thread.exit 1380: end 1381: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.