Sha256: 50663514b9e408beb3f02b4002808df3f6ec5d48c2885d39c2a1d38e2db79f02
Contents?: true
Size: 379 Bytes
Versions: 15
Compression:
Stored size: 379 Bytes
Contents
module Watir module Wait class Timer # # Executes given block until it returns true or exceeds timeout. # @param [Fixnum] timeout # @yield block # @api private # def wait(timeout, &block) end_time = ::Time.now + timeout yield(block) until ::Time.now > end_time end end # Timer end # Wait end # Watir
Version data entries
15 entries across 15 versions & 2 rubygems