         # File lib/eventmachine.rb, line 381
    381:   def self.add_periodic_timer *args, &block
    382:     interval = args.shift
    383:     code = args.shift || block
    384:     if code
    385:       block_1 = proc {
    386:         code.call
    387:         EventMachine::add_periodic_timer interval, code
    388:       }
    389:       add_timer interval, block_1
    390:     end
    391:   end