Method: IEgrip::Retry#retryGetTarget
- Defined in:
- lib/iegrip.rb
#retryGetTarget(&proc) ⇒ Object
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/iegrip.rb', line 58 def retryGetTarget(&proc) #puts "retryGetTarget() start.... proc = #{proc.inspect}" retry_count = (@ie_obj.timeout / RETRY_INTERVAL).to_i retry_count.times do target = proc.call #puts " in retryGetTarget(), target = #{target.inspect}" if target #puts "retryGetTarget() Success fin." return target end sleep RETRY_INTERVAL end #puts "retryGetTarget(), return nil." return nil end |