Parent

Methods

Class Index [+]

Quicksearch

Merb::BootLoader::ReloadClasses::TimedExecutor

Public Class Methods

every(seconds, &block) click to toggle source

Executes the associated block every @seconds@ seconds in a separate thread.

Parameters

seconds

Number of seconds to sleep in between runs of &block.

&block

The block to execute periodically.

Returns

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.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.