Sha256: a98280eb3264339d02968286651bf3ca8f6eeb1300fbb2bd12640e46dda8c609
Contents?: true
Size: 323 Bytes
Versions: 37
Compression:
Stored size: 323 Bytes
Contents
# frozen_string_literal: true # Add eventually helper for async operations def eventually(timeout: 5, delay: 0.1) deadline = Time.zone.now + timeout loop do yield break rescue RSpec::Expectations::ExpectationNotMetError, StandardError => e raise e if Time.zone.now >= deadline sleep delay end end
Version data entries
37 entries across 37 versions & 2 rubygems