Sha256: 48355993c757235f57104369f1a2edd22a7a359fdadaf52faf841e01d790a919
Contents?: true
Size: 292 Bytes
Versions: 38
Compression:
Stored size: 292 Bytes
Contents
class CC::Service::Invocation class WithRetries def initialize(invocation, retries) @invocation = invocation @retries = retries end def call @invocation.call rescue => ex raise ex if @retries.zero? @retries -= 1 retry end end end
Version data entries
38 entries across 38 versions & 1 rubygems