Method: Beaker::Shared::Repetition#repeat_for

Defined in:
lib/beaker/shared/repetition.rb

#repeat_for(seconds, &block) ⇒ Object



5
6
7
8
# File 'lib/beaker/shared/repetition.rb', line 5

def repeat_for seconds, &block
  # do not peg CPU if &block takes less than 1 second
  repeat_for_and_wait seconds, 1, &block
end