Sha256: a170f9916fb78f6f351d8e7b5e9d6556e94b88fb991c9d29b1011bfa4515483b
Contents?: true
Size: 243 Bytes
Versions: 18
Compression:
Stored size: 243 Bytes
Contents
require 'timeout' module CellectHelper def pass_until(obj, is: is) Timeout::timeout(1) do Thread.pass until obj.state == is end rescue => e puts "Timeout waiting for #{ obj.inspect } to be #{ is }" raise e end end
Version data entries
18 entries across 18 versions & 2 rubygems