Sha256: e3979584a73fa0ed45ededc47b90bebb7c857350d27a7a6b397952ef8c34f58e
Contents?: true
Size: 426 Bytes
Versions: 35
Compression:
Stored size: 426 Bytes
Contents
module Calabash module Android module Retry def self.retry(opts, &blk) tries = opts[:tries] interval = opts[:interval] tries.times do |try| begin blk.call return rescue => e if (try + 1) >= tries raise else sleep interval end end end end end end end
Version data entries
35 entries across 35 versions & 1 rubygems