Module: Appium::Core::Wait::Timer
- Defined in:
- lib/appium_lib_core/common/wait/timer.rb
Class Method Summary collapse
Class Method Details
.wait(timeout, &block) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/appium_lib_core/common/wait/timer.rb', line 7 def wait(timeout, &block) end_time = current_time + timeout loop do yield(block) break if current_time > end_time end end |